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.001204/0.001205, allocations: 175.2 kB / 12.73 MB, free: 2.59 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.612/1.612, allocations: 221.4 MB / 234.6 MB, free: 14.41 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009134/0.0009138, allocations: 92.73 kB / 285.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.4639/0.4639, allocations: 28.82 MB / 365.3 MB, free: 42.05 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.256e-05/3.258e-05, allocations: 4 kB / 430.8 MB, free: 4.332 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1507, allocations: 57.47 MB / 488.2 MB, free: 10.8 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5025/0.6532, allocations: 79.89 MB / 0.5548 GB, free: 25.07 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001687/0.6534, allocations: 64.8 kB / 0.5549 GB, free: 25.05 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03243/0.6859, allocations: 14 MB / 0.5685 GB, free: 17.01 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6859, allocations: 0 / 0.5685 GB, free: 17.01 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.777e-05/0.686, allocations: 32 kB / 0.5686 GB, free: 16.98 MB / 394.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.0021/0.6881, allocations: 1.084 MB / 0.5696 GB, free: 15.93 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.6882, allocations: 8.031 kB / 0.5696 GB, free: 15.92 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000443/0.6886, allocations: 172.5 kB / 0.5698 GB, free: 15.81 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000368/0.689, allocations: 142.3 kB / 0.5699 GB, free: 15.67 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001117/0.6902, allocations: 0.6832 MB / 0.5706 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.75e-05/0.6902, allocations: 85.77 kB / 0.5707 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001573/0.6904, allocations: 115.1 kB / 0.5708 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001738/0.6921, allocations: 1.083 MB / 0.5719 GB, free: 14.1 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/0.6922, allocations: 7.938 kB / 0.5719 GB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.258e-05/0.6923, allocations: 44.38 kB / 0.5719 GB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.214e-05/0.6923, allocations: 28 kB / 0.5719 GB, free: 14.06 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001168/0.6935, allocations: 0.7212 MB / 0.5726 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004276/0.6978, allocations: 4.165 MB / 0.5767 GB, free: 9.887 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007955/0.6986, allocations: 477.9 kB / 0.5772 GB, free: 9.543 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002489/0.6988, allocations: 202.3 kB / 0.5774 GB, free: 9.402 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.388e-05/0.6989, allocations: 19.5 kB / 0.5774 GB, free: 9.387 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.6989, allocations: 38.52 kB / 0.5774 GB, free: 9.344 MB / 394.7 MB Notification: Performance of pre-optimization done (n=34): time 1.994e-06/0.699, allocations: 0 / 0.5774 GB, free: 9.344 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.0007342/0.6997, allocations: 0.4998 MB / 0.5779 GB, free: 8.945 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.482e-05/0.6997, allocations: 55.41 kB / 0.578 GB, free: 8.879 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006456/0.7004, allocations: 0.5796 MB / 0.5785 GB, free: 8.422 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.901e-05/0.7004, allocations: 40.64 kB / 0.5786 GB, free: 8.383 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002784/0.7007, allocations: 0.5838 MB / 0.5791 GB, free: 7.949 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.56e-05/0.7008, allocations: 124 kB / 0.5792 GB, free: 7.844 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.438e-05/0.7008, allocations: 13 kB / 0.5793 GB, free: 7.84 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.571e-05/0.7009, allocations: 328.5 kB / 0.5796 GB, free: 7.52 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003039/0.7012, allocations: 213.2 kB / 0.5798 GB, free: 7.379 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003376/0.7016, allocations: 361.7 kB / 0.5801 GB, free: 7.039 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003414/0.7019, allocations: 271.3 kB / 0.5804 GB, free: 6.852 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.7019, allocations: 0 / 0.5804 GB, free: 6.852 MB / 394.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008924/0.7028, allocations: 0.6923 MB / 0.5811 GB, free: 6.309 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.7029, allocations: 4 kB / 0.5811 GB, free: 6.305 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.7029, allocations: 8 kB / 0.5811 GB, free: 6.297 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.7029, allocations: 8.625 kB / 0.5811 GB, free: 6.289 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003634/0.7033, allocations: 114.9 kB / 0.5812 GB, free: 6.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.7033, allocations: 4 kB / 0.5812 GB, free: 6.176 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002354/0.7035, allocations: 49.89 kB / 0.5812 GB, free: 6.137 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.413e-05/0.7036, allocations: 39.61 kB / 0.5813 GB, free: 6.102 MB / 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 9.802e-05/0.7037, allocations: 144.8 kB / 0.5814 GB, free: 5.965 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.032e-05/0.7038, allocations: 67.16 kB / 0.5815 GB, free: 5.898 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009524/0.7047, allocations: 0.6333 MB / 0.5821 GB, free: 5.414 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.7048, allocations: 0 / 0.5821 GB, free: 5.414 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.7048, allocations: 4 kB / 0.5821 GB, free: 5.41 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.7048, allocations: 3.984 kB / 0.5821 GB, free: 5.406 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008691/0.7057, allocations: 0.8335 MB / 0.5829 GB, free: 4.734 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.7057, allocations: 0 / 0.5829 GB, free: 4.734 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003354/0.706, allocations: 79.84 kB / 0.583 GB, free: 4.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.706, allocations: 0 / 0.583 GB, free: 4.66 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.22e-05/0.7061, allocations: 18.67 kB / 0.583 GB, free: 4.648 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.7061, allocations: 0 / 0.583 GB, free: 4.648 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.7061, allocations: 0 / 0.583 GB, free: 4.648 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009712/0.707, allocations: 0.9004 MB / 0.5839 GB, free: 3.941 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.864e-05/0.7072, allocations: 142.8 kB / 0.584 GB, free: 3.789 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.794e-05/0.7072, allocations: 13.19 kB / 0.584 GB, free: 3.781 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001871/0.7074, allocations: 11.61 kB / 0.584 GB, free: 3.773 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.03e-05/0.7075, allocations: 27.28 kB / 0.5841 GB, free: 3.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.5e-05/0.7075, allocations: 27.48 kB / 0.5841 GB, free: 3.727 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000443/0.708, allocations: 459.6 kB / 0.5845 GB, free: 3.387 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.708, allocations: 0 / 0.5845 GB, free: 3.387 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004994/0.7085, allocations: 204.9 kB / 0.5847 GB, free: 3.199 MB / 394.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.0009579/0.7095, allocations: 1.38 MB / 0.5861 GB, free: 1.969 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004993/0.71, allocations: 462.8 kB / 0.5865 GB, free: 1.625 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.71, allocations: 0 / 0.5865 GB, free: 1.625 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001944/0.7102, allocations: 210.5 kB / 0.5867 GB, free: 1.465 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000414/0.7106, allocations: 90.75 kB / 0.5868 GB, free: 1.406 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002176/0.7128, allocations: 1.546 MB / 0.5883 GB, free: 15.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006591/0.7135, allocations: 1.095 MB / 0.5894 GB, free: 14.86 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002313/0.7137, allocations: 68.19 kB / 0.5895 GB, free: 14.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003645/0.7141, allocations: 409.1 kB / 0.5898 GB, free: 14.73 MB / 410.7 MB Notification: Performance of SimCode: time 8.21e-07/0.7141, allocations: 0 / 0.5898 GB, free: 14.73 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02543/0.7395, allocations: 11.76 MB / 0.6013 GB, free: 3.102 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001649/0.7397, allocations: 166.1 kB / 0.6015 GB, free: 2.867 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.102/2.842, allocations: 4 kB / 0.6015 GB, free: 2.863 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)