Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.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/SystemDynamics 2.1.2-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/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(SystemDynamics.WorldDynamics.World3.Human_Fertility,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World3.Human_Fertility,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility",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.003812/0.003812, allocations: 184.5 kB / 7.462 MB, free: 2.5 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.387/1.387, allocations: 221.4 MB / 229.3 MB, free: 3.02 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.001011/0.001011, allocations: 104.1 kB / 280.1 MB, free: 1.297 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2048/0.2048, allocations: 28.82 MB / 359.7 MB, free: 1.617 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2341/0.4389, allocations: 63.6 MB / 423.3 MB, free: 44.12 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.5526, allocations: 57.46 MB / 480.8 MB, free: 2.59 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3629/0.9156, allocations: 79.16 MB / 0.5468 GB, free: 10.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003234/0.916, allocations: 67.95 kB / 0.5469 GB, free: 10.35 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 279 * Number of variables: 279 Notification: Performance of Generate backend data structure: time 0.03938/0.9554, allocations: 14.66 MB / 0.5612 GB, free: 11.61 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.9555, allocations: 12 kB / 0.5612 GB, free: 11.6 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004522/0.9559, allocations: 142.2 kB / 0.5614 GB, free: 11.46 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001363/0.9573, allocations: 0.686 MB / 0.562 GB, free: 10.73 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.408e-05/0.9574, allocations: 36 kB / 0.5621 GB, free: 10.7 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002076/0.9576, allocations: 67.98 kB / 0.5621 GB, free: 10.63 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001461/0.9591, allocations: 0.6525 MB / 0.5628 GB, free: 9.973 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001811/0.9609, allocations: 0.9416 MB / 0.5637 GB, free: 8.934 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.91e-05/0.961, allocations: 4 kB / 0.5637 GB, free: 8.93 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.389e-05/0.961, allocations: 11.89 kB / 0.5637 GB, free: 8.918 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.842e-05/0.9611, allocations: 28 kB / 0.5637 GB, free: 8.891 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005803/0.9669, allocations: 3.958 MB / 0.5676 GB, free: 4.805 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009224/0.9678, allocations: 414.4 kB / 0.568 GB, free: 4.395 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003294/0.9682, allocations: 201.4 kB / 0.5682 GB, free: 4.195 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.582e-05/0.9683, allocations: 12.28 kB / 0.5682 GB, free: 4.184 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.695e-05/0.9684, allocations: 38.83 kB / 0.5682 GB, free: 4.137 MB / 394.7 MB Notification: Performance of pre-optimization done (n=34): time 4.599e-06/0.9684, allocations: 3.938 kB / 0.5682 GB, free: 4.133 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.0012/0.9696, allocations: 0.5107 MB / 0.5687 GB, free: 3.617 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/0.9697, allocations: 55.41 kB / 0.5688 GB, free: 3.551 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009279/0.9706, allocations: 0.5468 MB / 0.5693 GB, free: 2.996 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.469e-05/0.9707, allocations: 26.25 kB / 0.5693 GB, free: 2.965 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004181/0.9711, allocations: 482 kB / 0.5698 GB, free: 2.484 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/0.9713, allocations: 130.1 kB / 0.5699 GB, free: 2.355 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.445e-05/0.9714, allocations: 0 / 0.5699 GB, free: 2.355 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.9716, allocations: 326 kB / 0.5702 GB, free: 2.031 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003751/0.9719, allocations: 217.2 kB / 0.5704 GB, free: 1.82 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004952/0.9724, allocations: 367.7 kB / 0.5708 GB, free: 1.395 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005887/0.973, allocations: 271.7 kB / 0.5711 GB, free: 1.129 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.9731, allocations: 0 / 0.5711 GB, free: 1.129 MB / 394.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00135/0.9744, allocations: 0.6682 MB / 0.5717 GB, free: 464 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.9745, allocations: 4 kB / 0.5717 GB, free: 460 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.9745, allocations: 4 kB / 0.5717 GB, free: 456 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.833e-05/0.9745, allocations: 11.98 kB / 0.5717 GB, free: 444 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004998/0.975, allocations: 107.8 kB / 0.5718 GB, free: 336 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/0.975, allocations: 8.406 kB / 0.5718 GB, free: 328 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003468/0.9754, allocations: 35.59 kB / 0.5719 GB, free: 292 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.228e-05/0.9755, allocations: 39.98 kB / 0.5719 GB, free: 252 kB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 10 (Fert_Cont_Facil_PC.Smooth3.Integrator1.local_reset,Fert_Cont_Facil_PC.Smooth2.Integrator1.local_reset,Fert_Cont_Facil_PC.Smooth1.Integrator1.local_reset,Perc_Life_Expectancy.Smooth3.Integrator1.local_reset,Perc_Life_Expectancy.Smooth2.Integrator1.local_reset,Perc_Life_Expectancy.Smooth1.Integrator1.local_reset,Del_Ind_Out_PC.Smooth3.Integrator1.local_reset,Del_Ind_Out_PC.Smooth2.Integrator1.local_reset,Del_Ind_Out_PC.Smooth1.Integrator1.local_reset,Avg_Ind_Out_PC.Smooth_of_Input.Integrator1.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 64 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002468/0.9757, allocations: 123.4 kB / 0.572 GB, free: 124 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.9759, allocations: 71.06 kB / 0.5721 GB, free: 52 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001494/0.9774, allocations: 0.6527 MB / 0.5727 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.858e-06/0.9774, allocations: 7.984 kB / 0.5727 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.9775, allocations: 3.906 kB / 0.5727 GB, free: 15.37 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.9775, allocations: 0 / 0.5727 GB, free: 15.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001251/0.9787, allocations: 0.7045 MB / 0.5734 GB, free: 14.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.9787, allocations: 0 / 0.5734 GB, free: 14.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004433/0.9792, allocations: 67.91 kB / 0.5735 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.254e-05/0.9792, allocations: 4 kB / 0.5735 GB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.627e-05/0.9793, allocations: 15.89 kB / 0.5735 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-06/0.9793, allocations: 4 kB / 0.5735 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.9793, allocations: 0 / 0.5735 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001444/0.9807, allocations: 0.9174 MB / 0.5744 GB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00266/0.9834, allocations: 2.198 MB / 0.5766 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/0.9836, allocations: 148.7 kB / 0.5767 GB, free: 11.22 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.786e-05/0.9837, allocations: 0 / 0.5767 GB, free: 11.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002557/0.984, allocations: 15.98 kB / 0.5767 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.523e-05/0.9841, allocations: 24.27 kB / 0.5767 GB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.662e-05/0.9842, allocations: 27.98 kB / 0.5768 GB, free: 11.15 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0006958/0.9849, allocations: 431 kB / 0.5772 GB, free: 10.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001393/0.9863, allocations: 186.6 kB / 0.5774 GB, free: 10.55 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (Avg_Ind_Out_PC.Smooth_of_Input.Integrator1.y,Del_Ind_Out_PC.Smooth1.Integrator1.y,Del_Ind_Out_PC.Smooth2.Integrator1.y,Del_Ind_Out_PC.Smooth3.Integrator1.y,Perc_Life_Expectancy.Smooth1.Integrator1.y,Perc_Life_Expectancy.Smooth2.Integrator1.y,Perc_Life_Expectancy.Smooth3.Integrator1.y,Fert_Cont_Facil_PC.Smooth1.Integrator1.y,Fert_Cont_Facil_PC.Smooth2.Integrator1.y,Fert_Cont_Facil_PC.Smooth3.Integrator1.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 36 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002485/0.9865, allocations: 108.9 kB / 0.5775 GB, free: 10.43 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007804/0.9873, allocations: 455.9 kB / 0.5779 GB, free: 9.988 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.9873, allocations: 0 / 0.5779 GB, free: 9.988 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003173/0.9877, allocations: 207.8 kB / 0.5781 GB, free: 9.785 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006136/0.9883, allocations: 77.58 kB / 0.5782 GB, free: 9.715 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003319/0.9916, allocations: 1.365 MB / 0.5795 GB, free: 8.309 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001122/0.9927, allocations: 1.166 MB / 0.5806 GB, free: 7.117 MB / 410.7 MB Notification: Performance of SimCode: time 1.362e-06/0.9928, allocations: 0 / 0.5806 GB, free: 7.117 MB / 410.7 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World3_Human_Fertility.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe 2>&1)