Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo", uses=false) Using package PhotoVoltaics_TGM with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Ignoring simflag -noemit -cpu=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160626_to_20161004",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160626_to_20161004",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.03303/0.03303, allocations: 5.393 MB / 21.03 MB, free: 1.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 98.16 kB / 23.03 MB, free: 0.8086 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 200.4 kB / 25.15 MB, free: 164 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.214/1.214, allocations: 222.9 MB / 250 MB, free: 8.426 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008907/0.008907, allocations: 2.327 MB / 303.7 MB, free: 6.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 99.84 kB / 422.7 MB, free: 19.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07504/0.0767, allocations: 51.21 MB / 473.9 MB, free: 216 kB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004): time 0.007597/0.08433, allocations: 6.858 MB / 480.7 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005537/0.08989, allocations: 3.943 MB / 484.7 MB, free: 5.363 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005223/0.09044, allocations: 19.94 kB / 484.7 MB, free: 5.344 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002407/0.09288, allocations: 1.177 MB / 485.9 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001649/0.09454, allocations: 0.8702 MB / 486.7 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001468/0.09602, allocations: 0.5477 MB / 487.3 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0013/0.09733, allocations: 1.409 MB / 488.7 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001203/0.09854, allocations: 1.021 MB / 489.7 MB, free: 288 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000573/0.09912, allocations: 0.5565 MB / 490.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007236/0.09986, allocations: 0.6847 MB / 491 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001573/0.1, allocations: 144 kB / 491.1 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006938/0.1007, allocations: 439.6 kB / 491.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002536/0.101, allocations: 307 kB / 491.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000516/0.1015, allocations: 0.6453 MB / 492.5 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001767/0.1033, allocations: 1.813 MB / 494.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.1033, allocations: 8 kB / 494.3 MB, free: 11.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1033, allocations: 0 / 494.3 MB, free: 11.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.263e-05/0.1033, allocations: 0 / 494.3 MB, free: 11.69 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.003764/0.1071, allocations: 1.839 MB / 496.1 MB, free: 9.781 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.1071, allocations: 8.031 kB / 496.1 MB, free: 9.773 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001934/0.1073, allocations: 164.9 kB / 496.3 MB, free: 9.602 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00214/0.1095, allocations: 387.8 kB / 496.7 MB, free: 9.223 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001678/0.1112, allocations: 0.8404 MB / 497.5 MB, free: 8.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.42e-05/0.1113, allocations: 78.08 kB / 497.6 MB, free: 8.262 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/0.1114, allocations: 108 kB / 497.7 MB, free: 8.156 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001954/0.1134, allocations: 1.173 MB / 498.9 MB, free: 6.922 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.678e-05/0.1134, allocations: 0 / 498.9 MB, free: 6.922 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.696e-05/0.1135, allocations: 44 kB / 498.9 MB, free: 6.879 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.716e-05/0.1136, allocations: 24 kB / 498.9 MB, free: 6.855 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002/0.1156, allocations: 1.07 MB / 0.4883 GB, free: 5.785 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005736/0.1213, allocations: 4.354 MB / 0.4925 GB, free: 1.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002528/0.1239, allocations: 1.74 MB / 0.4942 GB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006413/0.1245, allocations: 322.3 kB / 0.4946 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.858e-05/0.1246, allocations: 97.66 kB / 0.4946 GB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008142/0.1254, allocations: 465.7 kB / 0.4951 GB, free: 14.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=69): time 2.665e-06/0.1255, allocations: 0 / 0.4951 GB, free: 14.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=69): time 0.005857/0.1313, allocations: 1.597 MB / 0.4966 GB, free: 12.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.1315, allocations: 222.2 kB / 0.4969 GB, free: 12.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007585/0.1322, allocations: 0.6563 MB / 0.4975 GB, free: 11.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.457e-05/0.1323, allocations: 49.69 kB / 0.4975 GB, free: 11.74 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003516/0.1327, allocations: 0.5312 MB / 0.4981 GB, free: 11.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.1329, allocations: 250 kB / 0.4983 GB, free: 10.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002676/0.1331, allocations: 186.5 kB / 0.4985 GB, free: 10.76 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.1333, allocations: 386.8 kB / 0.4989 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006302/0.1339, allocations: 293.8 kB / 0.4991 GB, free: 10.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007786/0.1347, allocations: 0.5387 MB / 0.4997 GB, free: 9.449 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001437/0.1362, allocations: 0.9477 MB / 0.5006 GB, free: 8.383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.1362, allocations: 0 / 0.5006 GB, free: 8.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002114/0.1383, allocations: 1.11 MB / 0.5017 GB, free: 7.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.474e-05/0.1384, allocations: 63.39 kB / 0.5017 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.1384, allocations: 8 kB / 0.5017 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000451/0.1388, allocations: 93 kB / 0.5018 GB, free: 7.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008532/0.1397, allocations: 223.6 kB / 0.502 GB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/0.1411, allocations: 1.582 MB / 0.5036 GB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006879/0.1418, allocations: 115.2 kB / 0.5037 GB, free: 5.012 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.011e-05/0.1419, allocations: 43.98 kB / 0.5037 GB, free: 4.969 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.combiTimeTable.nextTimeEvent,$whenCondition3,writeCSV.sampleTrigger,$whenCondition2,mpTracker.sampleTrigger,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent,mpTracker.vRef,$PRE.mpTracker.vRef,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (118): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004172/0.1423, allocations: 343.1 kB / 0.5041 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.1425, allocations: 91.55 kB / 0.5042 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002007/0.1445, allocations: 1.007 MB / 0.5051 GB, free: 3.488 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.1445, allocations: 8 kB / 0.5051 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.1445, allocations: 0 / 0.5051 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.1445, allocations: 3.984 kB / 0.5051 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00576/0.1503, allocations: 2.31 MB / 0.5074 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.1503, allocations: 0 / 0.5074 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003583/0.1507, allocations: 95.89 kB / 0.5075 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007805/0.1515, allocations: 334.2 kB / 0.5078 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.018e-05/0.1515, allocations: 27.98 kB / 0.5078 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2015/0.3531, allocations: 0.8885 MB / 0.5087 GB, free: 45.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.3531, allocations: 0.75 kB / 0.5087 GB, free: 45.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002873/0.356, allocations: 1.403 MB / 0.5101 GB, free: 45.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003159/0.3563, allocations: 230.4 kB / 0.5103 GB, free: 45.61 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001292/0.3565, allocations: 23.17 kB / 0.5103 GB, free: 45.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005409/0.357, allocations: 46.12 kB / 0.5104 GB, free: 45.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.3571, allocations: 41.44 kB / 0.5104 GB, free: 45.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-05/0.3572, allocations: 34.5 kB / 0.5104 GB, free: 45.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005833/0.3578, allocations: 453 kB / 0.5109 GB, free: 45.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3578, allocations: 0 / 0.5109 GB, free: 45.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009369/0.3587, allocations: 326.7 kB / 0.5112 GB, free: 45.52 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (voltageSource.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 12 ($whenCondition3,$whenCondition1,$whenCondition2,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 12 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition2,writeCSV.sampleTrigger) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003764/0.3625, allocations: 2.526 MB / 0.5136 GB, free: 44.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0017/0.3642, allocations: 0.9929 MB / 0.5146 GB, free: 44.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3642, allocations: 0 / 0.5146 GB, free: 44.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007666/0.365, allocations: 0.4965 MB / 0.5151 GB, free: 43.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007505/0.3658, allocations: 149 kB / 0.5152 GB, free: 43.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009748/0.3755, allocations: 7.088 MB / 0.5222 GB, free: 39.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000464/0.376, allocations: 1.023 MB / 0.5232 GB, free: 39.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00043/0.3764, allocations: 128.8 kB / 0.5233 GB, free: 39.03 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004218/0.3769, allocations: 399 kB / 0.5237 GB, free: 38.73 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3769, allocations: 4 kB / 0.5237 GB, free: 38.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03866/0.4155, allocations: 20.52 MB / 0.5437 GB, free: 25.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.15/15.56, allocations: 16.56 kB / 0.5437 GB, free: 25.1 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004_res.csv --start-time 0 --stop-time 5.8752e+06 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 60 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160626_to_20161004.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160626_to_20161004.pipe 2>&1)