Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.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) Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160629",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.03036/0.03036, allocations: 5.395 MB / 21.03 MB, free: 1.625 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.007167/0.007167, allocations: 91.84 kB / 23.03 MB, free: 0.8008 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.001396/0.001396, allocations: 196.8 kB / 25.15 MB, free: 192 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.379/1.379, allocations: 222.9 MB / 250 MB, free: 8.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01006/0.01006, allocations: 2.317 MB / 303.7 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002655/0.002655, allocations: 99.84 kB / 419.2 MB, free: 22.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09289/0.09556, allocations: 51.21 MB / 470.4 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629): time 0.008574/0.1042, allocations: 6.845 MB / 477.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00651/0.1107, allocations: 3.935 MB / 481.1 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007813/0.1115, allocations: 23.94 kB / 481.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002819/0.1144, allocations: 1.17 MB / 482.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002094/0.1165, allocations: 0.8538 MB / 483.2 MB, free: 6.844 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001668/0.1181, allocations: 0.544 MB / 483.7 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001655/0.1198, allocations: 1.413 MB / 485.2 MB, free: 4.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001454/0.1213, allocations: 1.017 MB / 486.2 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007972/0.1221, allocations: 0.5565 MB / 486.7 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009551/0.1231, allocations: 0.6925 MB / 487.4 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002094/0.1233, allocations: 144 kB / 487.6 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009208/0.1242, allocations: 435.7 kB / 488 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002888/0.1245, allocations: 310.9 kB / 488.3 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006646/0.1252, allocations: 0.6413 MB / 488.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002408/0.1276, allocations: 1.81 MB / 490.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1276, allocations: 0 / 490.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1276, allocations: 0 / 490.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.584e-05/0.1276, allocations: 4 kB / 490.7 MB, free: 15.25 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.00425/0.1319, allocations: 1.839 MB / 492.6 MB, free: 13.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.1319, allocations: 12.02 kB / 492.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001927/0.1321, allocations: 156.9 kB / 492.7 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002284/0.1344, allocations: 391.8 kB / 493.1 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002051/0.1365, allocations: 0.8404 MB / 494 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.736e-05/0.1366, allocations: 82.08 kB / 494.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001966/0.1368, allocations: 104 kB / 494.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002325/0.1392, allocations: 1.169 MB / 495.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.269e-05/0.1392, allocations: 7.938 kB / 495.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001067/0.1393, allocations: 47.98 kB / 495.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.385e-05/0.1394, allocations: 24 kB / 495.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002217/0.1416, allocations: 1.066 MB / 496.5 MB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006904/0.1485, allocations: 4.35 MB / 0.4891 GB, free: 4.793 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002779/0.1513, allocations: 1.744 MB / 0.4908 GB, free: 2.836 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006996/0.152, allocations: 326.2 kB / 0.4911 GB, free: 2.516 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001118/0.1522, allocations: 97.64 kB / 0.4912 GB, free: 2.402 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008812/0.153, allocations: 461.8 kB / 0.4916 GB, free: 1.922 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.555e-06/0.1531, allocations: 0 / 0.4916 GB, free: 1.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.00581/0.1589, allocations: 1.593 MB / 0.4932 GB, free: 296 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001448/0.159, allocations: 226.2 kB / 0.4934 GB, free: 20 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009978/0.16, allocations: 0.6525 MB / 0.494 GB, free: 15.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.9e-05/0.1601, allocations: 49.64 kB / 0.4941 GB, free: 15.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004477/0.1606, allocations: 0.535 MB / 0.4946 GB, free: 14.76 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002178/0.1608, allocations: 242 kB / 0.4948 GB, free: 14.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003041/0.1611, allocations: 190.5 kB / 0.495 GB, free: 14.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002018/0.1613, allocations: 390.8 kB / 0.4954 GB, free: 13.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006835/0.162, allocations: 297.8 kB / 0.4957 GB, free: 13.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008806/0.1629, allocations: 0.5387 MB / 0.4962 GB, free: 13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00157/0.1645, allocations: 0.9322 MB / 0.4971 GB, free: 11.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.1645, allocations: 0 / 0.4971 GB, free: 11.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002399/0.1669, allocations: 1.122 MB / 0.4982 GB, free: 10.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.287e-05/0.167, allocations: 63.39 kB / 0.4983 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.001e-05/0.167, allocations: 8 kB / 0.4983 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004907/0.1675, allocations: 92.94 kB / 0.4984 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009422/0.1685, allocations: 219.7 kB / 0.4986 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001765/0.1703, allocations: 1.578 MB / 0.5001 GB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007729/0.171, allocations: 111.5 kB / 0.5002 GB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.816e-05/0.1711, allocations: 47.97 kB / 0.5003 GB, free: 8.535 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.00056/0.1717, allocations: 343.1 kB / 0.5006 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001805/0.1719, allocations: 83.48 kB / 0.5007 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002165/0.1741, allocations: 1.018 MB / 0.5017 GB, free: 7.051 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.1741, allocations: 7.938 kB / 0.5017 GB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1741, allocations: 4 kB / 0.5017 GB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.1741, allocations: 0 / 0.5017 GB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006234/0.1803, allocations: 2.298 MB / 0.5039 GB, free: 4.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.847e-06/0.1804, allocations: 4 kB / 0.5039 GB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004108/0.1808, allocations: 95.89 kB / 0.504 GB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008873/0.1817, allocations: 334.2 kB / 0.5043 GB, free: 4.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.447e-05/0.1818, allocations: 35.97 kB / 0.5044 GB, free: 4.195 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001421/0.1832, allocations: 0.8935 MB / 0.5052 GB, free: 3.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.1832, allocations: 4.031 kB / 0.5052 GB, free: 3.266 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00284/0.1861, allocations: 1.406 MB / 0.5066 GB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003853/0.1865, allocations: 232.3 kB / 0.5068 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001328/0.1866, allocations: 27.92 kB / 0.5069 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005458/0.1872, allocations: 43.97 kB / 0.5069 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.1873, allocations: 44.5 kB / 0.5069 GB, free: 1.457 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-05/0.1874, allocations: 27.98 kB / 0.507 GB, free: 1.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006249/0.188, allocations: 463 kB / 0.5074 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.188, allocations: 0 / 0.5074 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009446/0.189, allocations: 319.2 kB / 0.5077 GB, free: 0.6719 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.1885/0.3775, allocations: 2.501 MB / 0.5102 GB, free: 45.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002086/0.3796, allocations: 0.9966 MB / 0.5111 GB, free: 45.08 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.3796, allocations: 0 / 0.5111 GB, free: 45.08 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000883/0.3805, allocations: 0.4955 MB / 0.5116 GB, free: 44.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008913/0.3814, allocations: 164.8 kB / 0.5118 GB, free: 44.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01037/0.3918, allocations: 7.073 MB / 0.5187 GB, free: 41.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005162/0.3924, allocations: 1.02 MB / 0.5197 GB, free: 40.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005066/0.3929, allocations: 131.3 kB / 0.5198 GB, free: 40.56 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004581/0.3934, allocations: 401.9 kB / 0.5202 GB, free: 40.26 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3934, allocations: 0.5625 kB / 0.5202 GB, free: 40.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05335/0.4467, allocations: 20.51 MB / 0.5402 GB, free: 28.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.27/16.72, allocations: 11.92 kB / 0.5402 GB, free: 28.55 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 60 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160629.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.pipe 2>&1)