Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.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_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704",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.02978/0.02978, allocations: 5.395 MB / 21.03 MB, free: 1.629 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.009184/0.009184, allocations: 99.77 kB / 23.03 MB, free: 0.7812 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.001293/0.001293, allocations: 197.8 kB / 25.14 MB, free: 200 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.321/1.321, allocations: 222.9 MB / 250 MB, free: 8.383 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008939/0.008939, allocations: 2.32 MB / 303.7 MB, free: 6.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001738, allocations: 87.86 kB / 419.1 MB, free: 23.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08731/0.08906, allocations: 51.22 MB / 470.4 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704): time 0.008352/0.09746, allocations: 6.893 MB / 477.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007062/0.1046, allocations: 4.021 MB / 481.3 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001021/0.1056, allocations: 23.94 kB / 481.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003142/0.1088, allocations: 1.19 MB / 482.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002649/0.1115, allocations: 0.8969 MB / 483.4 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002082/0.1136, allocations: 0.6024 MB / 484 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002117/0.1157, allocations: 1.421 MB / 485.4 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001735/0.1174, allocations: 1.009 MB / 486.4 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009866/0.1184, allocations: 0.5721 MB / 487 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001107/0.1196, allocations: 0.6793 MB / 487.7 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003692/0.1199, allocations: 144 kB / 487.8 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00106/0.121, allocations: 431.7 kB / 488.2 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003639/0.1214, allocations: 302.9 kB / 488.5 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001001/0.1224, allocations: 0.6297 MB / 489.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002864/0.1253, allocations: 1.767 MB / 490.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.1253, allocations: 0 / 490.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1253, allocations: 0 / 490.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.605e-05/0.1254, allocations: 0 / 490.9 MB, free: 15.09 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.00504/0.1304, allocations: 1.839 MB / 492.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.1305, allocations: 8.031 kB / 492.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002414/0.1307, allocations: 156.6 kB / 492.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00216/0.1329, allocations: 391.8 kB / 493.3 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001887/0.1348, allocations: 0.8168 MB / 494.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.221e-05/0.1349, allocations: 78 kB / 494.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001888/0.1351, allocations: 112 kB / 494.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002146/0.1372, allocations: 1.13 MB / 495.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.165e-05/0.1373, allocations: 4 kB / 495.4 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.871e-05/0.1374, allocations: 44 kB / 495.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.028e-05/0.1374, allocations: 24 kB / 495.5 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001986/0.1394, allocations: 0.9447 MB / 496.4 MB, free: 9.391 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006172/0.1456, allocations: 4.311 MB / 0.489 GB, free: 4.875 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002535/0.1481, allocations: 1.678 MB / 0.4907 GB, free: 2.973 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006574/0.1488, allocations: 312 kB / 0.491 GB, free: 2.656 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.553e-05/0.1489, allocations: 93.48 kB / 0.491 GB, free: 2.547 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008402/0.1498, allocations: 466.6 kB / 0.4915 GB, free: 2.062 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.785e-06/0.1498, allocations: 0 / 0.4915 GB, free: 2.062 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005551/0.1553, allocations: 1.545 MB / 0.493 GB, free: 488 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001502/0.1555, allocations: 277.5 kB / 0.4933 GB, free: 148 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009911/0.1565, allocations: 0.6683 MB / 0.4939 GB, free: 15.46 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.468e-05/0.1566, allocations: 37.7 kB / 0.494 GB, free: 15.42 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000412/0.157, allocations: 0.5349 MB / 0.4945 GB, free: 14.88 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002016/0.1572, allocations: 226.2 kB / 0.4947 GB, free: 14.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002854/0.1575, allocations: 190.5 kB / 0.4949 GB, free: 14.46 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.1577, allocations: 390.7 kB / 0.4952 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006363/0.1583, allocations: 277.9 kB / 0.4955 GB, free: 13.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008133/0.1591, allocations: 0.5441 MB / 0.496 GB, free: 13.15 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001533/0.1607, allocations: 0.9098 MB / 0.4969 GB, free: 12.11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/0.1607, allocations: 4 kB / 0.4969 GB, free: 12.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002305/0.163, allocations: 1.079 MB / 0.498 GB, free: 11.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.803e-05/0.1631, allocations: 59.41 kB / 0.498 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.208e-05/0.1631, allocations: 11.98 kB / 0.4981 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004825/0.1636, allocations: 89.02 kB / 0.4981 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008623/0.1645, allocations: 219.7 kB / 0.4984 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001559/0.166, allocations: 1.582 MB / 0.4999 GB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007953/0.1669, allocations: 111.5 kB / 0.5 GB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.509e-05/0.1669, allocations: 47.97 kB / 0.5 GB, free: 8.738 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.0005282/0.1675, allocations: 331.5 kB / 0.5004 GB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002214/0.1677, allocations: 91.38 kB / 0.5005 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001932/0.1697, allocations: 0.9168 MB / 0.5013 GB, free: 7.359 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.495e-05/0.1697, allocations: 4 kB / 0.5014 GB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.1697, allocations: 8 kB / 0.5014 GB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-06/0.1697, allocations: 3.984 kB / 0.5014 GB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005907/0.1756, allocations: 2.207 MB / 0.5035 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.1756, allocations: 4 kB / 0.5035 GB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003512/0.176, allocations: 87.83 kB / 0.5036 GB, free: 4.965 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008026/0.1768, allocations: 326.3 kB / 0.5039 GB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-05/0.1769, allocations: 31.95 kB / 0.5039 GB, free: 4.605 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001271/0.1782, allocations: 0.8897 MB / 0.5048 GB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.838e-06/0.1782, allocations: 3.938 kB / 0.5048 GB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005128/0.1833, allocations: 1.635 MB / 0.5064 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003939/0.1837, allocations: 220.4 kB / 0.5066 GB, free: 1.766 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001841/0.1839, allocations: 20 kB / 0.5066 GB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006067/0.1845, allocations: 51.91 kB / 0.5067 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.476e-05/0.1846, allocations: 40.38 kB / 0.5067 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.229e-05/0.1847, allocations: 31.97 kB / 0.5068 GB, free: 1.625 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006366/0.1854, allocations: 463 kB / 0.5072 GB, free: 1.176 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1854, allocations: 4 kB / 0.5072 GB, free: 1.172 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001006/0.1864, allocations: 319.2 kB / 0.5075 GB, free: 0.8594 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.1973/0.3837, allocations: 2.74 MB / 0.5102 GB, free: 44.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0019/0.3856, allocations: 0.965 MB / 0.5111 GB, free: 44.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3856, allocations: 0 / 0.5111 GB, free: 44.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000785/0.3864, allocations: 488.7 kB / 0.5116 GB, free: 44.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009622/0.3874, allocations: 169.8 kB / 0.5118 GB, free: 44.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01012/0.3975, allocations: 7.002 MB / 0.5186 GB, free: 41.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005213/0.3981, allocations: 1.008 MB / 0.5196 GB, free: 40.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005217/0.3986, allocations: 127.2 kB / 0.5197 GB, free: 40.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004277/0.3991, allocations: 394.3 kB / 0.5201 GB, free: 40.15 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3991, allocations: 1.188 kB / 0.5201 GB, free: 40.15 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05283/0.4519, allocations: 20.62 MB / 0.5402 GB, free: 28.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.22/15.67, allocations: 15.94 kB / 0.5402 GB, free: 28.32 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704_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_Comax_Measurement_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe 2>&1)