Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.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.SimpleCell,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCell",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCell,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCell",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.002173/0.002173, allocations: 178.5 kB / 7.455 MB, free: 2.508 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.081/1.081, 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.0009324/0.0009325, allocations: 94.45 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.0229/0.0229, allocations: 5.292 MB / 336.2 MB, free: 9.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1923/0.2153, allocations: 59.6 MB / 395.8 MB, free: 69.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07152/0.2868, allocations: 51.61 MB / 447.4 MB, free: 17.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2246/0.5115, allocations: 82.18 MB / 0.5172 GB, free: 1.668 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001924/0.5117, allocations: 66.59 kB / 0.5172 GB, free: 1.637 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.03685/0.5486, allocations: 12.75 MB / 0.5297 GB, free: 6.891 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.5486, allocations: 8 kB / 0.5297 GB, free: 6.883 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.5488, allocations: 39.53 kB / 0.5297 GB, free: 6.844 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005633/0.5493, allocations: 350.1 kB / 0.5301 GB, free: 6.512 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/0.5494, allocations: 8 kB / 0.5301 GB, free: 6.504 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.942e-05/0.5494, allocations: 12 kB / 0.5301 GB, free: 6.492 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000548/0.55, allocations: 293.8 kB / 0.5304 GB, free: 6.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004262/0.5504, allocations: 261.6 kB / 0.5306 GB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.5504, allocations: 3.906 kB / 0.5306 GB, free: 6.113 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.5505, allocations: 0 / 0.5306 GB, free: 6.113 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.5505, allocations: 8 kB / 0.5306 GB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002173/0.5527, allocations: 1.351 MB / 0.5319 GB, free: 4.969 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003092/0.553, allocations: 195.3 kB / 0.5321 GB, free: 4.84 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000232/0.5532, allocations: 112.5 kB / 0.5322 GB, free: 4.762 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/0.5533, allocations: 4 kB / 0.5322 GB, free: 4.758 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.5533, allocations: 34.25 kB / 0.5323 GB, free: 4.719 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.5533, allocations: 4 kB / 0.5323 GB, free: 4.715 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.003008/0.5563, allocations: 0.5432 MB / 0.5328 GB, free: 4.238 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.2e-05/0.5564, allocations: 51.41 kB / 0.5328 GB, free: 4.176 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003987/0.5568, allocations: 346.9 kB / 0.5332 GB, free: 3.914 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.765e-05/0.5568, allocations: 25.7 kB / 0.5332 GB, free: 3.883 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.735e-05/0.5569, allocations: 177.6 kB / 0.5334 GB, free: 3.723 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.757e-05/0.557, allocations: 46.61 kB / 0.5334 GB, free: 3.684 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.924e-05/0.557, allocations: 0 / 0.5334 GB, free: 3.684 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.5571, allocations: 341.5 kB / 0.5337 GB, free: 3.355 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001723/0.5573, allocations: 105.4 kB / 0.5338 GB, free: 3.301 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.5575, allocations: 142 kB / 0.534 GB, free: 3.203 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001901/0.5577, allocations: 108.7 kB / 0.5341 GB, free: 3.141 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.5577, allocations: 4 kB / 0.5341 GB, free: 3.137 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.003384/0.5611, allocations: 0.7149 MB / 0.5348 GB, free: 2.531 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.5611, allocations: 6.5 kB / 0.5348 GB, free: 2.527 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.5611, allocations: 3.906 kB / 0.5348 GB, free: 2.523 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002853/0.564, allocations: 0.5585 MB / 0.5353 GB, free: 2.023 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000254/0.5643, allocations: 43.98 kB / 0.5354 GB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007304/0.5716, allocations: 3.973 MB / 0.5393 GB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004634/0.5721, allocations: 43.88 kB / 0.5393 GB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.814e-05/0.5721, allocations: 19.08 kB / 0.5393 GB, free: 14.25 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: variableResistor.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001898/0.5723, allocations: 108.9 kB / 0.5394 GB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.5724, allocations: 31.62 kB / 0.5395 GB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001182/0.5726, allocations: 36.05 kB / 0.5395 GB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.5726, allocations: 8 kB / 0.5395 GB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-06/0.5726, allocations: 0 / 0.5395 GB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.5726, allocations: 3.906 kB / 0.5395 GB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003562/0.5762, allocations: 1.018 MB / 0.5405 GB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/0.5762, allocations: 3.938 kB / 0.5405 GB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.5763, allocations: 27.17 kB / 0.5405 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002344/0.5786, allocations: 488.1 kB / 0.541 GB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.457e-05/0.5787, allocations: 7.359 kB / 0.541 GB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004713/0.5834, allocations: 2.232 MB / 0.5432 GB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.5834, allocations: 0 / 0.5432 GB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002961/0.5864, allocations: 0.6625 MB / 0.5438 GB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003043/0.5895, allocations: 1.027 MB / 0.5448 GB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002374/0.5897, allocations: 145.2 kB / 0.545 GB, free: 9.059 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.165e-05/0.5898, allocations: 3.906 kB / 0.545 GB, free: 9.055 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003465/0.5902, allocations: 35.91 kB / 0.545 GB, free: 9.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/0.5902, allocations: 7.984 kB / 0.545 GB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.662e-05/0.5903, allocations: 7.984 kB / 0.545 GB, free: 9.004 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003219/0.5906, allocations: 263.3 kB / 0.5453 GB, free: 8.812 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001119/0.5917, allocations: 115.3 kB / 0.5454 GB, free: 8.703 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002435/0.592, allocations: 139.1 kB / 0.5455 GB, free: 8.555 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008765/0.5928, allocations: 468.2 kB / 0.546 GB, free: 8.164 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.5929, allocations: 0 / 0.546 GB, free: 8.164 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002884/0.5932, allocations: 196.9 kB / 0.5461 GB, free: 7.996 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004162/0.5936, allocations: 61.41 kB / 0.5462 GB, free: 7.949 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/0.5948, allocations: 446.6 kB / 0.5466 GB, free: 7.539 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004131/0.5953, allocations: 0.8141 MB / 0.5474 GB, free: 6.695 MB / 362.7 MB Notification: Performance of SimCode: time 4.6e-07/0.5953, allocations: 0 / 0.5474 GB, free: 6.695 MB / 362.7 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleCell_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleCell.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCell.pipe 2>&1)