Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SolarPyramidBatteryCharge.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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 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) Running command: "" <> buildModelFMU(PhotoVoltaics.Examples.SolarPyramidBatteryCharge,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SolarPyramidBatteryCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SolarPyramidBatteryCharge,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SolarPyramidBatteryCharge",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002446/0.002446, allocations: 182.6 kB / 7.458 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.122/1.122, allocations: 221.4 MB / 229.3 MB, free: 3.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008979/0.0008979, allocations: 103.8 kB / 280.1 MB, free: 1.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02332/0.02332, allocations: 5.292 MB / 336.2 MB, free: 9.238 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1964/0.2198, allocations: 57.71 MB / 393.9 MB, free: 71.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08269/0.3025, allocations: 51.61 MB / 445.5 MB, free: 19.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.268/0.5705, allocations: 90.19 MB / 0.5231 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002452/0.5708, allocations: 72.41 kB / 0.5232 GB, free: 11.43 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 702 * Number of variables: 702 Notification: Performance of Generate backend data structure: time 0.1958/0.7666, allocations: 73.75 MB / 0.5952 GB, free: 8.758 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.7667, allocations: 12 kB / 0.5952 GB, free: 8.746 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001454/0.7682, allocations: 339.9 kB / 0.5956 GB, free: 8.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004245/0.7724, allocations: 1.678 MB / 0.5972 GB, free: 6.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001048/0.7725, allocations: 92 kB / 0.5973 GB, free: 6.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004272/0.773, allocations: 160 kB / 0.5974 GB, free: 6.434 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006133/0.7791, allocations: 2.49 MB / 0.5999 GB, free: 3.938 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005905/0.7851, allocations: 2.564 MB / 0.6024 GB, free: 1.262 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.977e-05/0.7852, allocations: 7.938 kB / 0.6024 GB, free: 1.254 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002182/0.7854, allocations: 8 kB / 0.6024 GB, free: 1.246 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-05/0.7855, allocations: 71.91 kB / 0.6025 GB, free: 1.176 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02227/0.8077, allocations: 12.46 MB / 0.6146 GB, free: 4.395 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003099/0.8109, allocations: 1.536 MB / 0.6161 GB, free: 2.852 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001556/0.8125, allocations: 0.8784 MB / 0.617 GB, free: 1.969 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.582e-05/0.8126, allocations: 17 kB / 0.617 GB, free: 1.953 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00154/0.8141, allocations: 0.8697 MB / 0.6178 GB, free: 1.043 MB / 426.7 MB Notification: Performance of pre-optimization done (n=138): time 3.326e-06/0.8141, allocations: 0 / 0.6178 GB, free: 1.043 MB / 426.7 MB Notification: Performance of matching and sorting (n=138): time 0.01195/0.8261, allocations: 2.723 MB / 0.6205 GB, free: 14.3 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002123/0.8263, allocations: 306.3 kB / 0.6208 GB, free: 13.94 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003181/0.8295, allocations: 1.402 MB / 0.6222 GB, free: 12.53 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003183/0.8299, allocations: 33.7 kB / 0.6222 GB, free: 12.49 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009827/0.8308, allocations: 1.005 MB / 0.6232 GB, free: 11.47 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005621/0.8314, allocations: 429.7 kB / 0.6236 GB, free: 11.05 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.8315, allocations: 4 kB / 0.6236 GB, free: 11.04 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.8317, allocations: 369.9 kB / 0.624 GB, free: 10.68 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001656/0.8334, allocations: 0.7187 MB / 0.6247 GB, free: 9.957 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001867/0.8353, allocations: 1.089 MB / 0.6257 GB, free: 8.707 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00181/0.8371, allocations: 0.8531 MB / 0.6265 GB, free: 7.855 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/0.8371, allocations: 4 kB / 0.6266 GB, free: 7.852 MB / 442.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.005911/0.843, allocations: 2.319 MB / 0.6288 GB, free: 5.512 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.8431, allocations: 8 kB / 0.6288 GB, free: 5.504 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.066e-05/0.8431, allocations: 15.84 kB / 0.6288 GB, free: 5.488 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002002/0.8451, allocations: 367.5 kB / 0.6292 GB, free: 5.117 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002493/0.8476, allocations: 483.2 kB / 0.6297 GB, free: 4.645 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1613/1.009, allocations: 6.151 MB / 0.6357 GB, free: 157.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002514/1.012, allocations: 201.5 kB / 0.6358 GB, free: 157.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002303/1.012, allocations: 95.12 kB / 0.6359 GB, free: 157.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 44 ($PRE.solarPyramid.dcConverter4.mpTracker.signv,solarPyramid.dcConverter4.mpTracker.signv,$PRE.solarPyramid.dcConverter4.mpTracker.firstTrigger,solarPyramid.dcConverter4.mpTracker.firstTrigger,$PRE.solarPyramid.dcConverter4.mpTracker.counter,solarPyramid.dcConverter4.mpTracker.counter,$PRE.solarPyramid.dcConverter3.mpTracker.signv,solarPyramid.dcConverter3.mpTracker.signv,$PRE.solarPyramid.dcConverter3.mpTracker.firstTrigger,solarPyramid.dcConverter3.mpTracker.firstTrigger,$PRE.solarPyramid.dcConverter3.mpTracker.counter,solarPyramid.dcConverter3.mpTracker.counter,$PRE.solarPyramid.dcConverter2.mpTracker.signv,solarPyramid.dcConverter2.mpTracker.signv,$PRE.solarPyramid.dcConverter2.mpTracker.firstTrigger,solarPyramid.dcConverter2.mpTracker.firstTrigger,$PRE.solarPyramid.dcConverter2.mpTracker.counter,solarPyramid.dcConverter2.mpTracker.counter,$PRE.solarPyramid.dcConverter1.mpTracker.signv,solarPyramid.dcConverter1.mpTracker.signv,$PRE.solarPyramid.dcConverter1.mpTracker.firstTrigger,solarPyramid.dcConverter1.mpTracker.firstTrigger,$PRE.solarPyramid.dcConverter1.mpTracker.counter,solarPyramid.dcConverter1.mpTracker.counter,$whenCondition4,solarPyramid.dcConverter4.mpTracker.sampleTrigger,$whenCondition3,solarPyramid.dcConverter3.mpTracker.sampleTrigger,$whenCondition2,solarPyramid.dcConverter2.mpTracker.sampleTrigger,$whenCondition1,solarPyramid.dcConverter1.mpTracker.sampleTrigger,$PRE.solarPyramid.dcConverter1.mpTracker.vRef,solarPyramid.dcConverter1.mpTracker.vRef,$PRE.solarPyramid.dcConverter2.mpTracker.vRef,solarPyramid.dcConverter2.mpTracker.vRef,$PRE.solarPyramid.dcConverter3.mpTracker.vRef,solarPyramid.dcConverter3.mpTracker.vRef,$PRE.solarPyramid.dcConverter4.mpTracker.vRef,solarPyramid.dcConverter4.mpTracker.vRef,solarPyramid.dcConverter4.converter.integrator.local_reset,solarPyramid.dcConverter3.converter.integrator.local_reset,solarPyramid.dcConverter2.converter.integrator.local_reset,solarPyramid.dcConverter1.converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (230): * Single equations (assignments): 222 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {2,2,2,2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005164/1.012, allocations: 335.4 kB / 0.6363 GB, free: 156.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003377/1.013, allocations: 180.8 kB / 0.6364 GB, free: 156.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01138/1.024, allocations: 2.999 MB / 0.6394 GB, free: 156.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-05/1.024, allocations: 11.25 kB / 0.6394 GB, free: 156.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/1.024, allocations: 0 / 0.6394 GB, free: 156.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.088e-05/1.024, allocations: 7.453 kB / 0.6394 GB, free: 156.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01122/1.035, allocations: 5.283 MB / 0.6445 GB, free: 156.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.932e-06/1.035, allocations: 6.094 kB / 0.6445 GB, free: 156.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008519/1.036, allocations: 173.4 kB / 0.6447 GB, free: 156.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01062/1.047, allocations: 2.573 MB / 0.6472 GB, free: 156.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001951/1.047, allocations: 46 kB / 0.6473 GB, free: 156.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003663/1.051, allocations: 3.646 MB / 0.6508 GB, free: 154 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/1.051, allocations: 2.062 kB / 0.6508 GB, free: 154 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009715/1.061, allocations: 3.641 MB / 0.6544 GB, free: 153.7 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01144/1.072, allocations: 4.913 MB / 0.6592 GB, free: 152.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001172/1.073, allocations: 0.6093 MB / 0.6598 GB, free: 152.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003817/1.074, allocations: 37.56 kB / 0.6598 GB, free: 152.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001444/1.075, allocations: 121.7 kB / 0.6599 GB, free: 152.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001584/1.075, allocations: 75.44 kB / 0.66 GB, free: 152.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001177/1.075, allocations: 58.41 kB / 0.6601 GB, free: 152.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001725/1.077, allocations: 1.052 MB / 0.6611 GB, free: 152.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002328/1.079, allocations: 0.6788 MB / 0.6617 GB, free: 152.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (solarPyramid.dcConverter1.converter.integrator.y,solarPyramid.dcConverter2.converter.integrator.y,solarPyramid.dcConverter3.converter.integrator.y,solarPyramid.dcConverter4.converter.integrator.y) * Number of discrete variables: 24 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,solarPyramid.dcConverter1.mpTracker.firstTrigger,solarPyramid.dcConverter1.mpTracker.sampleTrigger,solarPyramid.dcConverter1.mpTracker.counter,solarPyramid.dcConverter1.mpTracker.signv,solarPyramid.dcConverter1.mpTracker.vRef,solarPyramid.dcConverter2.mpTracker.firstTrigger,solarPyramid.dcConverter2.mpTracker.sampleTrigger,solarPyramid.dcConverter2.mpTracker.counter,solarPyramid.dcConverter2.mpTracker.signv,solarPyramid.dcConverter2.mpTracker.vRef,solarPyramid.dcConverter3.mpTracker.firstTrigger,solarPyramid.dcConverter3.mpTracker.sampleTrigger,solarPyramid.dcConverter3.mpTracker.counter,solarPyramid.dcConverter3.mpTracker.signv,solarPyramid.dcConverter3.mpTracker.vRef,solarPyramid.dcConverter4.mpTracker.firstTrigger,solarPyramid.dcConverter4.mpTracker.sampleTrigger,solarPyramid.dcConverter4.mpTracker.counter,solarPyramid.dcConverter4.mpTracker.signv,solarPyramid.dcConverter4.mpTracker.vRef) * Number of discrete states: 28 (solarPyramid.dcConverter3.mpTracker.signv,solarPyramid.dcConverter3.mpTracker.vRef,solarPyramid.dcConverter3.mpTracker.firstTrigger,solarPyramid.dcConverter3.mpTracker.counter,$whenCondition3,solarPyramid.dcConverter3.mpTracker.sampleTrigger,solarPyramid.dcConverter3.mpTracker.power,solarPyramid.dcConverter2.mpTracker.signv,solarPyramid.dcConverter2.mpTracker.vRef,solarPyramid.dcConverter2.mpTracker.firstTrigger,solarPyramid.dcConverter2.mpTracker.counter,$whenCondition2,solarPyramid.dcConverter2.mpTracker.sampleTrigger,solarPyramid.dcConverter2.mpTracker.power,solarPyramid.dcConverter1.mpTracker.signv,solarPyramid.dcConverter1.mpTracker.vRef,solarPyramid.dcConverter1.mpTracker.firstTrigger,solarPyramid.dcConverter1.mpTracker.counter,$whenCondition1,solarPyramid.dcConverter1.mpTracker.sampleTrigger,solarPyramid.dcConverter1.mpTracker.power,solarPyramid.dcConverter4.mpTracker.signv,solarPyramid.dcConverter4.mpTracker.vRef,solarPyramid.dcConverter4.mpTracker.firstTrigger,solarPyramid.dcConverter4.mpTracker.counter,$whenCondition4,solarPyramid.dcConverter4.mpTracker.sampleTrigger,solarPyramid.dcConverter4.mpTracker.power) * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 5,1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003324/1.08, allocations: 226.6 kB / 0.662 GB, free: 152.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003779/1.083, allocations: 2.274 MB / 0.6642 GB, free: 151.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/1.084, allocations: 3.219 kB / 0.6642 GB, free: 151.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001773/1.085, allocations: 1.049 MB / 0.6652 GB, free: 151.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/1.087, allocations: 270.4 kB / 0.6655 GB, free: 151.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006643/1.093, allocations: 3.072 MB / 0.6685 GB, free: 150.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001805/1.095, allocations: 1.772 MB / 0.6702 GB, free: 150 MB / 442.7 MB Notification: Performance of SimCode: time 9.12e-07/1.095, allocations: 0 / 0.6702 GB, free: 150 MB / 442.7 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SolarPyramidBatteryCharge.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SolarPyramidBatteryCharge.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SolarPyramidBatteryCharge.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SolarPyramidBatteryCharge.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SolarPyramidBatteryCharge_fmu --startTime=0 --stopTime=500 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SolarPyramidBatteryCharge.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SolarPyramidBatteryCharge.pipe 2>&1)