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.02823/0.02824, allocations: 5.393 MB / 21.03 MB, free: 1.559 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.001009/0.001009, allocations: 106.7 kB / 23.02 MB, free: 0.7891 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.001072/0.001073, allocations: 196.7 kB / 25.15 MB, free: 152 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.237/1.237, allocations: 222.9 MB / 250 MB, free: 8.406 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009414/0.009414, allocations: 2.318 MB / 303.7 MB, free: 6.457 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 103.8 kB / 419.1 MB, free: 22.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08555/0.08715, allocations: 51.21 MB / 470.4 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629): time 0.00808/0.09526, allocations: 6.847 MB / 477.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005986/0.1013, allocations: 3.951 MB / 481.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000623/0.1019, allocations: 16 kB / 481.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002585/0.1045, allocations: 1.181 MB / 482.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001913/0.1065, allocations: 0.8701 MB / 483.2 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00155/0.108, allocations: 0.5398 MB / 483.8 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00143/0.1095, allocations: 1.417 MB / 485.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001248/0.1107, allocations: 1.013 MB / 486.2 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000628/0.1114, allocations: 0.5604 MB / 486.8 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000763/0.1121, allocations: 0.6886 MB / 487.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001614/0.1123, allocations: 140 kB / 487.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007324/0.113, allocations: 435.7 kB / 488 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002479/0.1133, allocations: 314.9 kB / 488.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005388/0.1138, allocations: 0.6453 MB / 489 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001884/0.1157, allocations: 1.802 MB / 490.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.1157, allocations: 0 / 490.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1158, allocations: 4 kB / 490.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.69e-05/0.1158, allocations: 0 / 490.8 MB, free: 15.21 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.003853/0.1196, allocations: 1.851 MB / 492.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.1197, allocations: 12.03 kB / 492.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001795/0.1199, allocations: 164.9 kB / 492.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002056/0.122, allocations: 383.8 kB / 493.2 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001679/0.1236, allocations: 0.8364 MB / 494 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.239e-05/0.1237, allocations: 78.08 kB / 494.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001613/0.1239, allocations: 108 kB / 494.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001931/0.1258, allocations: 1.176 MB / 495.4 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.688e-05/0.1259, allocations: 0 / 495.4 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.762e-05/0.126, allocations: 48 kB / 495.4 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.056e-05/0.126, allocations: 28 kB / 495.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001996/0.128, allocations: 1.068 MB / 496.5 MB, free: 9.297 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005802/0.1338, allocations: 4.354 MB / 0.4891 GB, free: 4.742 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002558/0.1364, allocations: 1.732 MB / 0.4908 GB, free: 2.797 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006222/0.137, allocations: 327.3 kB / 0.4911 GB, free: 2.473 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.897e-05/0.1371, allocations: 97.64 kB / 0.4912 GB, free: 2.359 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007998/0.1379, allocations: 469.7 kB / 0.4917 GB, free: 1.871 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.174e-06/0.138, allocations: 0 / 0.4917 GB, free: 1.871 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.005518/0.1435, allocations: 1.597 MB / 0.4932 GB, free: 240 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001357/0.1436, allocations: 226.2 kB / 0.4934 GB, free: 15.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007795/0.1444, allocations: 0.6486 MB / 0.4941 GB, free: 15.3 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.831e-05/0.1445, allocations: 41.7 kB / 0.4941 GB, free: 15.26 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003757/0.1449, allocations: 0.535 MB / 0.4946 GB, free: 14.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001925/0.1451, allocations: 242 kB / 0.4949 GB, free: 14.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000275/0.1453, allocations: 190.5 kB / 0.495 GB, free: 14.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.1455, allocations: 386.8 kB / 0.4954 GB, free: 13.89 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000658/0.1462, allocations: 297.8 kB / 0.4957 GB, free: 13.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008089/0.147, allocations: 0.5387 MB / 0.4962 GB, free: 12.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.1485, allocations: 0.936 MB / 0.4971 GB, free: 11.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.1485, allocations: 4 kB / 0.4971 GB, free: 11.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002174/0.1507, allocations: 1.114 MB / 0.4982 GB, free: 10.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.146e-05/0.1507, allocations: 67.41 kB / 0.4983 GB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.1508, allocations: 8 kB / 0.4983 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004506/0.1512, allocations: 88.98 kB / 0.4984 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008404/0.1521, allocations: 227.6 kB / 0.4986 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001518/0.1536, allocations: 1.582 MB / 0.5001 GB, free: 8.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000739/0.1544, allocations: 115.5 kB / 0.5003 GB, free: 8.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.425e-05/0.1544, allocations: 43.98 kB / 0.5003 GB, free: 8.484 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.0004553/0.1549, allocations: 339.1 kB / 0.5006 GB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000164/0.1551, allocations: 83.48 kB / 0.5007 GB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002034/0.1571, allocations: 1.018 MB / 0.5017 GB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.1571, allocations: 4 kB / 0.5017 GB, free: 7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.1572, allocations: 4 kB / 0.5017 GB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.1572, allocations: 7.984 kB / 0.5017 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005862/0.163, allocations: 2.298 MB / 0.504 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.1631, allocations: 4 kB / 0.504 GB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000369/0.1634, allocations: 95.89 kB / 0.5041 GB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008031/0.1642, allocations: 334.3 kB / 0.5044 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.051e-05/0.1643, allocations: 23.97 kB / 0.5044 GB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00123/0.1655, allocations: 0.8974 MB / 0.5053 GB, free: 3.227 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1656, allocations: 0 / 0.5053 GB, free: 3.227 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002631/0.1682, allocations: 1.41 MB / 0.5066 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003614/0.1686, allocations: 228.3 kB / 0.5069 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001644/0.1687, allocations: 28 kB / 0.5069 GB, free: 1.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005716/0.1693, allocations: 47.95 kB / 0.5069 GB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.349e-05/0.1694, allocations: 36.52 kB / 0.507 GB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.879e-05/0.1695, allocations: 31.97 kB / 0.507 GB, free: 1.391 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005635/0.1701, allocations: 455 kB / 0.5074 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1701, allocations: 4 kB / 0.5074 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009441/0.171, allocations: 327.2 kB / 0.5078 GB, free: 0.6289 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.1984/0.3694, allocations: 2.505 MB / 0.5102 GB, free: 45.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001987/0.3714, allocations: 0.9958 MB / 0.5112 GB, free: 45.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.3714, allocations: 6 kB / 0.5112 GB, free: 45.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008262/0.3723, allocations: 0.5013 MB / 0.5117 GB, free: 45.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008651/0.3731, allocations: 152.8 kB / 0.5118 GB, free: 45.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01023/0.3834, allocations: 7.081 MB / 0.5187 GB, free: 41.53 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005926/0.384, allocations: 1.018 MB / 0.5197 GB, free: 40.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004962/0.3845, allocations: 134.1 kB / 0.5198 GB, free: 40.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004743/0.385, allocations: 398.1 kB / 0.5202 GB, free: 40.48 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.385, allocations: 4 kB / 0.5202 GB, free: 40.47 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07375/0.4587, allocations: 20.52 MB / 0.5403 GB, free: 28.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.01/15.47, allocations: 3.938 kB / 0.5403 GB, free: 28.77 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)