Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_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_Comax_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_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.03053/0.03053, allocations: 5.395 MB / 21.03 MB, free: 1.539 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.001383/0.001383, allocations: 104.5 kB / 23.02 MB, free: 0.8164 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.001213/0.001213, allocations: 197.9 kB / 25.16 MB, free: 140 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.377/1.377, allocations: 222.9 MB / 250 MB, free: 8.422 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01052/0.01052, allocations: 2.319 MB / 303.7 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002675/0.002675, allocations: 95.84 kB / 419.2 MB, free: 22.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08311/0.0858, allocations: 51.19 MB / 470.3 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629): time 0.008684/0.09452, allocations: 6.904 MB / 477.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006782/0.1013, allocations: 4.025 MB / 481.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005623/0.1019, allocations: 19.94 kB / 481.3 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002775/0.1047, allocations: 1.17 MB / 482.5 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001919/0.1067, allocations: 0.8856 MB / 483.4 MB, free: 6.688 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001776/0.1085, allocations: 0.6063 MB / 484 MB, free: 6.086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001576/0.11, allocations: 1.417 MB / 485.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001424/0.1115, allocations: 1.013 MB / 486.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006787/0.1122, allocations: 0.5565 MB / 486.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01487/0.127, allocations: 0.6885 MB / 487.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003239/0.1274, allocations: 144 kB / 487.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009347/0.1283, allocations: 431.7 kB / 488.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002852/0.1286, allocations: 294.9 kB / 488.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006715/0.1293, allocations: 0.6375 MB / 489.1 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002197/0.1315, allocations: 1.763 MB / 490.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1315, allocations: 0 / 490.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1315, allocations: 0 / 490.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.1316, allocations: 0 / 490.9 MB, free: 15.11 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.004144/0.1357, allocations: 1.839 MB / 492.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.1358, allocations: 12.02 kB / 492.7 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001982/0.136, allocations: 156.6 kB / 492.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002184/0.1382, allocations: 387.8 kB / 493.3 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00178/0.1399, allocations: 0.8246 MB / 494.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.511e-05/0.14, allocations: 78 kB / 494.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/0.1402, allocations: 100 kB / 494.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002067/0.1423, allocations: 1.126 MB / 495.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.119e-05/0.1423, allocations: 7.938 kB / 495.4 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001/0.1424, allocations: 44 kB / 495.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.652e-05/0.1425, allocations: 24 kB / 495.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002081/0.1445, allocations: 0.9485 MB / 496.4 MB, free: 9.406 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006295/0.1509, allocations: 4.315 MB / 0.489 GB, free: 4.887 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002788/0.1537, allocations: 1.666 MB / 0.4906 GB, free: 2.996 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006935/0.1544, allocations: 319.4 kB / 0.4909 GB, free: 2.676 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001044/0.1545, allocations: 93.47 kB / 0.491 GB, free: 2.566 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000892/0.1554, allocations: 454.6 kB / 0.4914 GB, free: 2.094 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.214e-06/0.1554, allocations: 4 kB / 0.4915 GB, free: 2.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005927/0.1613, allocations: 1.553 MB / 0.493 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000162/0.1615, allocations: 281.5 kB / 0.4932 GB, free: 164 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009058/0.1624, allocations: 0.6643 MB / 0.4939 GB, free: 15.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.227e-05/0.1625, allocations: 41.7 kB / 0.4939 GB, free: 15.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004341/0.1629, allocations: 0.5351 MB / 0.4944 GB, free: 14.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002174/0.1632, allocations: 226.2 kB / 0.4947 GB, free: 14.67 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000301/0.1635, allocations: 190.5 kB / 0.4948 GB, free: 14.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.1637, allocations: 382.8 kB / 0.4952 GB, free: 14.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006868/0.1644, allocations: 285.8 kB / 0.4955 GB, free: 13.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000895/0.1653, allocations: 0.5363 MB / 0.496 GB, free: 13.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001576/0.1668, allocations: 0.9179 MB / 0.4969 GB, free: 12.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.1669, allocations: 4 kB / 0.4969 GB, free: 12.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.00231/0.1692, allocations: 1.075 MB / 0.498 GB, free: 11.03 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.132e-05/0.1693, allocations: 69.89 kB / 0.498 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.1693, allocations: 8 kB / 0.498 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004657/0.1697, allocations: 84.78 kB / 0.4981 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008576/0.1706, allocations: 216 kB / 0.4983 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001684/0.1723, allocations: 1.585 MB / 0.4999 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007283/0.1731, allocations: 107.5 kB / 0.5 GB, free: 8.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.695e-05/0.1731, allocations: 47.97 kB / 0.5 GB, free: 8.762 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 26 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.irradianceTable.nextTimeEvent,$whenCondition4,writeCSV.sampleTrigger,$whenCondition3,mpTracker.sampleTrigger,$whenCondition2,$PRE.powerTable.nextTimeEvent,$whenCondition1,powerTable.nextTimeEventScaled,$PRE.powerTable.nextTimeEventScaled,powerTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,$PRE.irradianceTable.nextTimeEventScaled,irradianceTable.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 (117): * Single equations (assignments): 114 * 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.0004556/0.1736, allocations: 339.5 kB / 0.5003 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001492/0.1738, allocations: 91.38 kB / 0.5004 GB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0021/0.1759, allocations: 0.9129 MB / 0.5013 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.1759, allocations: 4 kB / 0.5013 GB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1759, allocations: 8 kB / 0.5013 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.1759, allocations: 3.984 kB / 0.5013 GB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005971/0.1819, allocations: 2.203 MB / 0.5035 GB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.1819, allocations: 64 / 0.5035 GB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003614/0.1823, allocations: 95.83 kB / 0.5036 GB, free: 4.984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008584/0.1831, allocations: 330.3 kB / 0.5039 GB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.816e-05/0.1832, allocations: 27.97 kB / 0.5039 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00139/0.1846, allocations: 0.8897 MB / 0.5048 GB, free: 3.703 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/0.1846, allocations: 3.938 kB / 0.5048 GB, free: 3.699 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005316/0.19, allocations: 1.639 MB / 0.5064 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003199/0.1903, allocations: 224.4 kB / 0.5066 GB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.1904, allocations: 16 kB / 0.5066 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005615/0.191, allocations: 51.95 kB / 0.5067 GB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.803e-05/0.1911, allocations: 40.39 kB / 0.5067 GB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.472e-05/0.1912, allocations: 27.97 kB / 0.5067 GB, free: 1.645 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006367/0.1918, allocations: 467 kB / 0.5072 GB, free: 1.191 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1918, allocations: 0 / 0.5072 GB, free: 1.191 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009733/0.1928, allocations: 319.2 kB / 0.5075 GB, free: 0.8789 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (voltageSource.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 15 ($whenCondition1,powerTable.nextTimeEvent,powerTable.nextTimeEventScaled,$whenCondition4,$whenCondition2,$whenCondition3,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,writeCSV.sampleTrigger,writeCSV.firstTrigger,irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled) * Number of discrete states: 14 (irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition2,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition3,writeCSV.sampleTrigger,powerTable.nextTimeEventScaled,powerTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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.1986/0.3914, allocations: 2.737 MB / 0.5102 GB, free: 45.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002027/0.3934, allocations: 0.9624 MB / 0.5111 GB, free: 45.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3935, allocations: 0 / 0.5111 GB, free: 45.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007989/0.3943, allocations: 488.6 kB / 0.5116 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.0009492/0.3952, allocations: 173.6 kB / 0.5117 GB, free: 45.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009995/0.4052, allocations: 7.011 MB / 0.5186 GB, free: 41.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005104/0.4058, allocations: 1.011 MB / 0.5196 GB, free: 40.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004492/0.4062, allocations: 115.4 kB / 0.5197 GB, free: 40.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004667/0.4067, allocations: 391.7 kB / 0.52 GB, free: 40.56 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4067, allocations: 0 / 0.52 GB, free: 40.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04949/0.4562, allocations: 20.63 MB / 0.5402 GB, free: 28.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.43/15.89, allocations: 11.05 kB / 0.5402 GB, free: 28.76 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160629.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160629.pipe 2>&1)