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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002092/0.002092, allocations: 180.9 kB / 7.65 MB, free: 1.422 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.479/1.479, allocations: 221.5 MB / 229.6 MB, free: 7.574 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.0009005/0.0009005, allocations: 93.84 kB / 280.5 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1914/0.1914, allocations: 28.84 MB / 360.1 MB, free: 2.199 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.769e-05/1.76e-05, allocations: 4 kB / 423.9 MB, free: 32.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1145, allocations: 57.49 MB / 481.4 MB, free: 6.727 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3994/0.514, allocations: 79.24 MB / 0.5475 GB, free: 10.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001878/0.5142, allocations: 61.59 kB / 0.5475 GB, free: 10.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02812/0.5423, allocations: 13.87 MB / 0.5611 GB, free: 6.234 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5424, allocations: 0 / 0.5611 GB, free: 6.234 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.287e-05/0.5424, allocations: 30.75 kB / 0.5611 GB, free: 6.227 MB / 362.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.00121/0.5437, allocations: 1.087 MB / 0.5622 GB, free: 5.434 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.5437, allocations: 11.64 kB / 0.5622 GB, free: 5.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.5439, allocations: 147.8 kB / 0.5623 GB, free: 5.352 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007521/0.5446, allocations: 0.6736 MB / 0.563 GB, free: 4.945 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.929e-05/0.5447, allocations: 38.56 kB / 0.563 GB, free: 4.941 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.552e-05/0.5448, allocations: 69.41 kB / 0.5631 GB, free: 4.938 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009472/0.5457, allocations: 0.634 MB / 0.5637 GB, free: 4.871 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001288/0.547, allocations: 0.9351 MB / 0.5646 GB, free: 4.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.218e-05/0.5471, allocations: 0 / 0.5646 GB, free: 4.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.593e-05/0.5471, allocations: 3.844 kB / 0.5646 GB, free: 4.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.004e-05/0.5472, allocations: 26.97 kB / 0.5646 GB, free: 4.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003348/0.5505, allocations: 3.978 MB / 0.5685 GB, free: 1.707 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006674/0.5512, allocations: 464 kB / 0.569 GB, free: 1.617 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002218/0.5514, allocations: 190.5 kB / 0.5691 GB, free: 1.582 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.514e-05/0.5515, allocations: 18.83 kB / 0.5692 GB, free: 1.578 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.5515, allocations: 38.47 kB / 0.5692 GB, free: 1.535 MB / 362.7 MB Notification: Performance of pre-optimization done (n=34): time 1.392e-06/0.5515, allocations: 0.5469 kB / 0.5692 GB, free: 1.535 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.0007478/0.5523, allocations: 499.5 kB / 0.5697 GB, free: 1.395 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.824e-05/0.5523, allocations: 59.19 kB / 0.5697 GB, free: 1.328 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005533/0.5529, allocations: 0.5412 MB / 0.5703 GB, free: 1.148 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.154e-05/0.5529, allocations: 25.7 kB / 0.5703 GB, free: 1.117 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002859/0.5532, allocations: 0.5848 MB / 0.5709 GB, free: 0.7617 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.122e-05/0.5533, allocations: 131.2 kB / 0.571 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.454e-05/0.5534, allocations: 0 / 0.571 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.943e-05/0.5534, allocations: 328 kB / 0.5713 GB, free: 356 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002517/0.5537, allocations: 209.6 kB / 0.5715 GB, free: 328 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003077/0.554, allocations: 345.5 kB / 0.5718 GB, free: 116 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004045/0.5544, allocations: 255.7 kB / 0.5721 GB, free: 64 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.5544, allocations: 4 kB / 0.5721 GB, free: 60 kB / 362.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008842/0.5553, allocations: 0.6529 MB / 0.5727 GB, free: 15.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.5554, allocations: 11.78 kB / 0.5727 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.5554, allocations: 3.875 kB / 0.5727 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.194e-05/0.5554, allocations: 7.688 kB / 0.5727 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003615/0.5558, allocations: 108.1 kB / 0.5728 GB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.5558, allocations: 7.688 kB / 0.5728 GB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002162/0.556, allocations: 35.33 kB / 0.5729 GB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.532e-05/0.5561, allocations: 34.72 kB / 0.5729 GB, free: 15.82 MB / 378.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.0001404/0.5562, allocations: 134.6 kB / 0.573 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006644/0.5569, allocations: 0.4904 MB / 0.5735 GB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.929e-05/0.557, allocations: 65.94 kB / 0.5736 GB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009651/0.558, allocations: 0.5956 MB / 0.5742 GB, free: 15.35 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.558, allocations: 7.844 kB / 0.5742 GB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.558, allocations: 3.844 kB / 0.5742 GB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.558, allocations: 3.984 kB / 0.5742 GB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007998/0.5588, allocations: 0.6886 MB / 0.5748 GB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.5588, allocations: 3.953 kB / 0.5748 GB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003442/0.5592, allocations: 76.05 kB / 0.5749 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.5592, allocations: 3.906 kB / 0.5749 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.25e-05/0.5592, allocations: 6.875 kB / 0.5749 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.5592, allocations: 3.844 kB / 0.5749 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/0.5592, allocations: 4 kB / 0.5749 GB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.5603, allocations: 0.8853 MB / 0.5758 GB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001464/0.5605, allocations: 147.9 kB / 0.5759 GB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.413e-05/0.5606, allocations: 3.312 kB / 0.5759 GB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001807/0.5608, allocations: 7.984 kB / 0.576 GB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.496e-05/0.5608, allocations: 27.78 kB / 0.576 GB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.562e-05/0.5609, allocations: 19.83 kB / 0.576 GB, free: 14.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004678/0.5614, allocations: 433.2 kB / 0.5764 GB, free: 14.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5614, allocations: 192 / 0.5764 GB, free: 14.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005345/0.5619, allocations: 182.7 kB / 0.5766 GB, free: 13.91 MB / 378.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.001422/0.5633, allocations: 1.365 MB / 0.5779 GB, free: 12.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005825/0.5639, allocations: 436 kB / 0.5783 GB, free: 12.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.5639, allocations: 0 / 0.5783 GB, free: 12.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002455/0.5642, allocations: 208.4 kB / 0.5785 GB, free: 12.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004866/0.5647, allocations: 70.7 kB / 0.5786 GB, free: 12.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002666/0.5674, allocations: 1.52 MB / 0.5801 GB, free: 10.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007658/0.5682, allocations: 1.083 MB / 0.5811 GB, free: 9.629 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002215/0.5684, allocations: 64.23 kB / 0.5812 GB, free: 9.562 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000402/0.5688, allocations: 407 kB / 0.5816 GB, free: 9.492 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5688, allocations: 0 / 0.5816 GB, free: 9.492 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0338/0.6026, allocations: 11.16 MB / 0.5925 GB, free: 14.35 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/0.6029, allocations: 138.5 kB / 0.5926 GB, free: 14.16 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.395/2.998, allocations: 112 / 0.5926 GB, free: 14.16 MB / 394.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)