Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.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_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808",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.03424/0.03424, allocations: 5.396 MB / 21.03 MB, free: 1.586 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.0009684/0.0009685, allocations: 100.6 kB / 23.03 MB, free: 0.7773 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.001077/0.001077, allocations: 196.2 kB / 25.15 MB, free: 180 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.326/1.326, allocations: 222.9 MB / 250 MB, free: 8.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009367/0.009367, allocations: 2.313 MB / 303.7 MB, free: 6.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001657, allocations: 100.3 kB / 419.2 MB, free: 22.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09669/0.09836, allocations: 51.2 MB / 470.3 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808): time 0.008812/0.1072, allocations: 6.901 MB / 477.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006911/0.1142, allocations: 4.021 MB / 481.3 MB, free: 8.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001158/0.1154, allocations: 27.94 kB / 481.3 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00304/0.1185, allocations: 1.181 MB / 482.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002507/0.121, allocations: 0.9012 MB / 483.4 MB, free: 6.562 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001968/0.123, allocations: 0.6027 MB / 484 MB, free: 5.965 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001947/0.1249, allocations: 1.413 MB / 485.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001694/0.1266, allocations: 1.017 MB / 486.4 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009583/0.1276, allocations: 0.572 MB / 487 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001133/0.1287, allocations: 0.6807 MB / 487.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003194/0.1291, allocations: 140 kB / 487.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009861/0.1301, allocations: 431.7 kB / 488.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003683/0.1304, allocations: 302.9 kB / 488.5 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008833/0.1313, allocations: 0.6258 MB / 489.1 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002395/0.1337, allocations: 1.775 MB / 490.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1338, allocations: 0 / 490.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1338, allocations: 0 / 490.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.891e-05/0.1338, allocations: 0 / 490.9 MB, free: 14.98 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.003996/0.1378, allocations: 1.828 MB / 492.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.1378, allocations: 16.03 kB / 492.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001797/0.138, allocations: 156.5 kB / 492.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002105/0.1401, allocations: 387.8 kB / 493.3 MB, free: 12.53 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001909/0.1421, allocations: 0.8247 MB / 494.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.608e-05/0.1422, allocations: 81.98 kB / 494.2 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001577/0.1423, allocations: 104 kB / 494.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001958/0.1443, allocations: 1.122 MB / 495.4 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.496e-05/0.1443, allocations: 7.938 kB / 495.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001024/0.1444, allocations: 40 kB / 495.5 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.221e-05/0.1445, allocations: 28 kB / 495.5 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001886/0.1464, allocations: 0.9547 MB / 496.5 MB, free: 9.273 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006475/0.1529, allocations: 4.311 MB / 0.489 GB, free: 4.758 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002741/0.1556, allocations: 1.666 MB / 0.4907 GB, free: 2.867 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006864/0.1563, allocations: 322 kB / 0.491 GB, free: 2.543 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.446e-05/0.1564, allocations: 93.48 kB / 0.491 GB, free: 2.434 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009115/0.1573, allocations: 454.6 kB / 0.4915 GB, free: 1.961 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 4.608e-06/0.1574, allocations: 0 / 0.4915 GB, free: 1.961 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005728/0.1631, allocations: 1.561 MB / 0.493 GB, free: 368 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001709/0.1633, allocations: 273.6 kB / 0.4933 GB, free: 32 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001101/0.1644, allocations: 0.6644 MB / 0.4939 GB, free: 15.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.729e-05/0.1645, allocations: 41.7 kB / 0.494 GB, free: 15.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004666/0.1649, allocations: 0.5311 MB / 0.4945 GB, free: 14.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002185/0.1652, allocations: 230.1 kB / 0.4947 GB, free: 14.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000317/0.1655, allocations: 190.6 kB / 0.4949 GB, free: 14.35 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001936/0.1657, allocations: 390.7 kB / 0.4952 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006798/0.1664, allocations: 285.8 kB / 0.4955 GB, free: 13.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008828/0.1673, allocations: 0.5402 MB / 0.496 GB, free: 13.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00153/0.1688, allocations: 0.9137 MB / 0.4969 GB, free: 11.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.829e-06/0.1688, allocations: 0 / 0.4969 GB, free: 11.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002438/0.1713, allocations: 1.071 MB / 0.498 GB, free: 10.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.772e-05/0.1714, allocations: 71.33 kB / 0.4981 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.958e-05/0.1714, allocations: 8 kB / 0.4981 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004939/0.1719, allocations: 84.73 kB / 0.4981 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000894/0.1728, allocations: 223.7 kB / 0.4984 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001766/0.1746, allocations: 1.57 MB / 0.4999 GB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008822/0.1755, allocations: 111.4 kB / 0.5 GB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.418e-05/0.1756, allocations: 48.11 kB / 0.5 GB, free: 8.633 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.0005323/0.1761, allocations: 335.5 kB / 0.5004 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002179/0.1764, allocations: 91.38 kB / 0.5004 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001952/0.1783, allocations: 0.9129 MB / 0.5013 GB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.856e-06/0.1783, allocations: 8.125 kB / 0.5013 GB, free: 7.246 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.1783, allocations: 4 kB / 0.5014 GB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.1784, allocations: 3.984 kB / 0.5014 GB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005994/0.1844, allocations: 2.215 MB / 0.5035 GB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.1844, allocations: 0 / 0.5035 GB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003434/0.1847, allocations: 91.83 kB / 0.5036 GB, free: 4.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008096/0.1855, allocations: 326.3 kB / 0.5039 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-05/0.1856, allocations: 23.97 kB / 0.5039 GB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001301/0.1869, allocations: 0.8858 MB / 0.5048 GB, free: 3.582 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/0.1869, allocations: 12.03 kB / 0.5048 GB, free: 3.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005016/0.192, allocations: 1.631 MB / 0.5064 GB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000379/0.1924, allocations: 228.3 kB / 0.5066 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001728/0.1925, allocations: 20 kB / 0.5066 GB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005957/0.1931, allocations: 47.95 kB / 0.5067 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.474e-05/0.1933, allocations: 40.33 kB / 0.5067 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.829e-05/0.1933, allocations: 35.97 kB / 0.5068 GB, free: 1.512 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006368/0.194, allocations: 463 kB / 0.5072 GB, free: 1.062 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.194, allocations: 0 / 0.5072 GB, free: 1.062 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001031/0.195, allocations: 327.1 kB / 0.5075 GB, free: 0.7422 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.211/0.4061, allocations: 2.739 MB / 0.5102 GB, free: 45.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001997/0.4081, allocations: 0.9617 MB / 0.5111 GB, free: 45.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.4081, allocations: 4.688 kB / 0.5111 GB, free: 45.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008386/0.409, allocations: 487.4 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.0009842/0.41, allocations: 175.2 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.01078/0.4208, allocations: 7 MB / 0.5186 GB, free: 41.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006027/0.4214, allocations: 1.009 MB / 0.5196 GB, free: 40.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004942/0.4219, allocations: 127.1 kB / 0.5197 GB, free: 40.85 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004325/0.4223, allocations: 391.2 kB / 0.5201 GB, free: 40.56 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4224, allocations: 0.5 kB / 0.5201 GB, free: 40.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0855/0.5079, allocations: 20.62 MB / 0.5402 GB, free: 28.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.07/15.58, allocations: 7.922 kB / 0.5402 GB, free: 28.75 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.sim & python3 -m fmpy simulate --output-file PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808_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_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe 2>&1)