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.007244/0.007244, allocations: 173.6 kB / 15.12 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 223.2 MB / 239 MB, free: 1.77 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.00115/0.00115, allocations: 98.11 kB / 290.2 MB, free: 13.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2169/0.2169, allocations: 28.84 MB / 370.2 MB, free: 13.9 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004209/0.0004211, allocations: 8 kB / 438.2 MB, free: 70.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1253, allocations: 57.48 MB / 495.7 MB, free: 13.15 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4212/0.5466, allocations: 79.97 MB / 0.5622 GB, free: 11.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.5469, allocations: 65.59 kB / 0.5622 GB, free: 11.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03169/0.5785, allocations: 13.99 MB / 0.5759 GB, free: 80 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.5786, allocations: 0 / 0.5759 GB, free: 80 kB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001049/0.5787, allocations: 28 kB / 0.5759 GB, free: 52 kB / 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.003009/0.5817, allocations: 1.201 MB / 0.5771 GB, free: 14.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.806e-05/0.5818, allocations: 8.031 kB / 0.5771 GB, free: 14.87 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005774/0.5824, allocations: 176.7 kB / 0.5773 GB, free: 14.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004529/0.5829, allocations: 142.3 kB / 0.5774 GB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001573/0.5845, allocations: 0.6837 MB / 0.5781 GB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001087/0.5846, allocations: 81.14 kB / 0.5781 GB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002315/0.5848, allocations: 120.5 kB / 0.5783 GB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002311/0.5872, allocations: 1.114 MB / 0.5793 GB, free: 13.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.853e-05/0.5872, allocations: 4 kB / 0.5793 GB, free: 13.01 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001112/0.5873, allocations: 46.62 kB / 0.5794 GB, free: 13 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.983e-05/0.5874, allocations: 28 kB / 0.5794 GB, free: 12.97 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001617/0.589, allocations: 0.7617 MB / 0.5802 GB, free: 12.42 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005526/0.5945, allocations: 4.171 MB / 0.5842 GB, free: 8.754 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009515/0.5955, allocations: 0.4951 MB / 0.5847 GB, free: 8.383 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.306e-05/0.5956, allocations: 15.28 kB / 0.5847 GB, free: 8.371 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.453e-05/0.5957, allocations: 37.64 kB / 0.5848 GB, free: 8.328 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 6.262e-06/0.5957, allocations: 0 / 0.5848 GB, free: 8.328 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001322/0.597, allocations: 0.7289 MB / 0.5855 GB, free: 7.762 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.094e-05/0.5971, allocations: 55.41 kB / 0.5855 GB, free: 7.695 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000719/0.5978, allocations: 0.5834 MB / 0.5861 GB, free: 7.234 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.489e-05/0.5978, allocations: 29.64 kB / 0.5861 GB, free: 7.203 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003957/0.5983, allocations: 0.5847 MB / 0.5867 GB, free: 6.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.5984, allocations: 132.6 kB / 0.5868 GB, free: 6.656 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.361e-05/0.5984, allocations: 11.69 kB / 0.5868 GB, free: 6.652 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.5986, allocations: 333.6 kB / 0.5872 GB, free: 6.328 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003544/0.5989, allocations: 232.1 kB / 0.5874 GB, free: 6.172 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004564/0.5994, allocations: 383 kB / 0.5877 GB, free: 5.812 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000418/0.5998, allocations: 279.2 kB / 0.588 GB, free: 5.629 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.5998, allocations: 4 kB / 0.588 GB, free: 5.625 MB / 378.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001064/0.6009, allocations: 0.7152 MB / 0.5887 GB, free: 5.074 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.6009, allocations: 8 kB / 0.5887 GB, free: 5.066 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.601, allocations: 4 kB / 0.5887 GB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.454e-05/0.601, allocations: 8.625 kB / 0.5887 GB, free: 5.055 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003993/0.6014, allocations: 111.7 kB / 0.5888 GB, free: 4.949 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.382e-05/0.6014, allocations: 11.94 kB / 0.5889 GB, free: 4.938 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002439/0.6017, allocations: 50.89 kB / 0.5889 GB, free: 4.895 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.726e-05/0.6018, allocations: 31.94 kB / 0.5889 GB, free: 4.867 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 () * Number of clocked 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.0005011/0.6023, allocations: 288.7 kB / 0.5892 GB, free: 4.648 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.6024, allocations: 71.17 kB / 0.5893 GB, free: 4.578 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.6035, allocations: 0.6483 MB / 0.5899 GB, free: 4.074 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.6035, allocations: 11.98 kB / 0.5899 GB, free: 4.062 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.6035, allocations: 0 / 0.5899 GB, free: 4.062 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.6036, allocations: 0 / 0.5899 GB, free: 4.062 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001091/0.6047, allocations: 0.8331 MB / 0.5907 GB, free: 3.391 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.6047, allocations: 0 / 0.5907 GB, free: 3.391 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003817/0.6051, allocations: 79.08 kB / 0.5908 GB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/0.6051, allocations: 0 / 0.5908 GB, free: 3.316 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.661e-05/0.6051, allocations: 14.25 kB / 0.5908 GB, free: 3.309 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.6051, allocations: 0 / 0.5908 GB, free: 3.309 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.6051, allocations: 0 / 0.5908 GB, free: 3.309 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/0.6064, allocations: 0.9471 MB / 0.5917 GB, free: 2.566 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.6066, allocations: 151 kB / 0.5919 GB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.337e-05/0.6067, allocations: 12.94 kB / 0.5919 GB, free: 2.398 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.6069, allocations: 11.12 kB / 0.5919 GB, free: 2.391 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.378e-05/0.6069, allocations: 31.33 kB / 0.5919 GB, free: 2.363 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-05/0.607, allocations: 23.44 kB / 0.592 GB, free: 2.344 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005262/0.6075, allocations: 464.2 kB / 0.5924 GB, free: 2 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.6075, allocations: 0 / 0.5924 GB, free: 2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006042/0.6081, allocations: 200.3 kB / 0.5926 GB, free: 1.816 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 () * Number of clocked 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.001499/0.6096, allocations: 1.417 MB / 0.594 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007815/0.6104, allocations: 496 kB / 0.5945 GB, free: 176 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.6105, allocations: 0 / 0.5945 GB, free: 176 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003216/0.6108, allocations: 226.4 kB / 0.5947 GB, free: 15.99 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000547/0.6113, allocations: 88.97 kB / 0.5948 GB, free: 15.94 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008528/0.6199, allocations: 8.203 MB / 0.6028 GB, free: 8.359 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000776/0.6207, allocations: 1.08 MB / 0.6038 GB, free: 7.262 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002816/0.621, allocations: 60.25 kB / 0.6039 GB, free: 7.199 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004271/0.6214, allocations: 415.6 kB / 0.6043 GB, free: 7.125 MB / 394.7 MB Notification: Performance of SimCode: time 1.242e-06/0.6214, allocations: 0 / 0.6043 GB, free: 7.125 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03106/0.6525, allocations: 11.75 MB / 0.6158 GB, free: 11.51 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002375/0.6528, allocations: 174.2 kB / 0.6159 GB, free: 11.28 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.428/3.081, allocations: 2.391 kB / 0.6159 GB, free: 11.28 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)