Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.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.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",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.002118/0.002118, allocations: 185.2 kB / 7.457 MB, free: 2.52 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.111/1.111, allocations: 221.4 MB / 229.3 MB, free: 3.012 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.0008953/0.0008954, allocations: 101.6 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.02275/0.02275, allocations: 5.302 MB / 336.2 MB, free: 9.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1879/0.2107, allocations: 59.61 MB / 395.8 MB, free: 69.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0727/0.2834, allocations: 51.6 MB / 447.4 MB, free: 17.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2507/0.5341, allocations: 92.74 MB / 0.5275 GB, free: 7.512 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.5344, allocations: 70.97 kB / 0.5275 GB, free: 7.48 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: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.1014/0.6357, allocations: 30.6 MB / 0.5574 GB, free: 14.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.6358, allocations: 8 kB / 0.5574 GB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001693/0.6375, allocations: 293.2 kB / 0.5577 GB, free: 14.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009863/0.6385, allocations: 0.5323 MB / 0.5582 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.013e-05/0.6386, allocations: 28 kB / 0.5583 GB, free: 13.81 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001776/0.6388, allocations: 56 kB / 0.5583 GB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001648/0.6404, allocations: 0.8043 MB / 0.5591 GB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.6418, allocations: 0.8215 MB / 0.5599 GB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.119e-05/0.6419, allocations: 11.92 kB / 0.5599 GB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.086e-05/0.642, allocations: 0 / 0.5599 GB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.19e-05/0.642, allocations: 24 kB / 0.5599 GB, free: 12.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006114/0.6481, allocations: 3.855 MB / 0.5637 GB, free: 9.141 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008047/0.6489, allocations: 0.4919 MB / 0.5642 GB, free: 8.629 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004252/0.6494, allocations: 258.5 kB / 0.5644 GB, free: 8.371 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.826e-05/0.6495, allocations: 85.11 kB / 0.5645 GB, free: 8.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004365/0.6499, allocations: 319.7 kB / 0.5648 GB, free: 7.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.344e-06/0.65, allocations: 0 / 0.5648 GB, free: 7.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=50): time 0.004604/0.6546, allocations: 0.8217 MB / 0.5656 GB, free: 7.094 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002016/0.6548, allocations: 170.6 kB / 0.5658 GB, free: 6.891 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001782/0.6566, allocations: 457.1 kB / 0.5662 GB, free: 6.434 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001778/0.6568, allocations: 33.69 kB / 0.5662 GB, free: 6.395 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005529/0.6574, allocations: 406.3 kB / 0.5666 GB, free: 5.988 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001872/0.6576, allocations: 161.7 kB / 0.5668 GB, free: 5.828 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.99e-05/0.6577, allocations: 4 kB / 0.5668 GB, free: 5.824 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.6578, allocations: 362.8 kB / 0.5671 GB, free: 5.461 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000407/0.6582, allocations: 225.5 kB / 0.5673 GB, free: 5.238 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005232/0.6588, allocations: 418.7 kB / 0.5677 GB, free: 4.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006241/0.6594, allocations: 291 kB / 0.568 GB, free: 4.465 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.6594, allocations: 4 kB / 0.568 GB, free: 4.461 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001761/0.6612, allocations: 0.7928 MB / 0.5688 GB, free: 3.656 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.6612, allocations: 8 kB / 0.5688 GB, free: 3.648 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.6612, allocations: 4 kB / 0.5688 GB, free: 3.645 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005514/0.6618, allocations: 93.25 kB / 0.5689 GB, free: 3.551 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008552/0.6627, allocations: 199.6 kB / 0.5691 GB, free: 3.355 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00167/0.6643, allocations: 1.494 MB / 0.5706 GB, free: 1.746 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007761/0.6651, allocations: 87.25 kB / 0.5706 GB, free: 1.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.001e-05/0.6652, allocations: 31.98 kB / 0.5707 GB, free: 1.629 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,$PRE.mpTracker.vRef,mpTracker.vRef,converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002188/0.6654, allocations: 171.4 kB / 0.5708 GB, free: 1.449 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.6656, allocations: 59.28 kB / 0.5709 GB, free: 1.391 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003679/0.6693, allocations: 0.9029 MB / 0.5718 GB, free: 500 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.6693, allocations: 11.91 kB / 0.5718 GB, free: 488 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.6693, allocations: 0 / 0.5718 GB, free: 488 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-06/0.6693, allocations: 3.984 kB / 0.5718 GB, free: 484 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005678/0.675, allocations: 1.797 MB / 0.5735 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.675, allocations: 3.984 kB / 0.5735 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000378/0.6754, allocations: 75.84 kB / 0.5736 GB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002496/0.6779, allocations: 0.5605 MB / 0.5742 GB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-05/0.678, allocations: 11.98 kB / 0.5742 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/0.6791, allocations: 0.8379 MB / 0.575 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.6791, allocations: 3.984 kB / 0.575 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005665/0.6848, allocations: 1.248 MB / 0.5762 GB, free: 11.81 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00493/0.6898, allocations: 1.884 MB / 0.5781 GB, free: 9.883 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003422/0.6901, allocations: 208.1 kB / 0.5783 GB, free: 9.66 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001411/0.6903, allocations: 8 kB / 0.5783 GB, free: 9.652 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005079/0.6908, allocations: 36.03 kB / 0.5783 GB, free: 9.617 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.378e-05/0.6909, allocations: 27.95 kB / 0.5783 GB, free: 9.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.977e-05/0.6909, allocations: 19.98 kB / 0.5783 GB, free: 9.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0004401/0.6914, allocations: 339 kB / 0.5787 GB, free: 9.242 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001353/0.6927, allocations: 267 kB / 0.5789 GB, free: 8.98 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (converter.potentialSensor.pin_p.reference.gamma,converter.integrator.y) * Number of discrete variables: 6 ($whenCondition1,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef) * Number of discrete states: 7 (mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 41 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000332/0.6931, allocations: 194.3 kB / 0.5791 GB, free: 8.781 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001298/0.6944, allocations: 0.7039 MB / 0.5798 GB, free: 8.059 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.6944, allocations: 0 / 0.5798 GB, free: 8.059 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004951/0.6949, allocations: 302 kB / 0.5801 GB, free: 7.758 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005087/0.6954, allocations: 82.58 kB / 0.5802 GB, free: 7.684 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002112/0.6975, allocations: 0.9605 MB / 0.5811 GB, free: 6.688 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007008/0.6983, allocations: 1.019 MB / 0.5821 GB, free: 5.641 MB / 394.7 MB Notification: Performance of SimCode: time 3.51e-07/0.6983, allocations: 0 / 0.5821 GB, free: 5.641 MB / 394.7 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe 2>&1)