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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(SystemDynamics.WorldDynamics.World3.Human_Fertility,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility") translateModel(SystemDynamics.WorldDynamics.World3.Human_Fertility,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001004, allocations: 102.9 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 223.2 MB / 239.9 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3754/0.3754, allocations: 28.85 MB / 319.8 MB, free: 6.266 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003376/0.0003377, allocations: 8 kB / 387.8 MB, free: 3.516 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3745/0.3749, allocations: 57.48 MB / 445.3 MB, free: 32.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.00398/0.3789, allocations: 3.003 MB / 448.3 MB, free: 30.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001985/0.3809, allocations: 0.8014 MB / 449.1 MB, free: 30 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000608/0.3816, allocations: 19.81 kB / 449.1 MB, free: 30 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003379/0.3819, allocations: 79.45 kB / 449.2 MB, free: 29.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003761/0.3823, allocations: 86.44 kB / 449.3 MB, free: 29.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007757/0.3831, allocations: 265 kB / 449.5 MB, free: 29.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001063/0.3842, allocations: 0.5648 MB / 450.1 MB, free: 29.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00085/0.3851, allocations: 0.4975 MB / 450.6 MB, free: 29.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002704/0.3853, allocations: 209.2 kB / 450.8 MB, free: 29.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002941/0.3856, allocations: 271.8 kB / 451 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.29e-05/0.3857, allocations: 20.56 kB / 451.1 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001645/0.3859, allocations: 42.59 kB / 451.1 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000196/0.3861, allocations: 184.3 kB / 451.3 MB, free: 28.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001583/0.3863, allocations: 198.3 kB / 451.5 MB, free: 28.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008867/0.3872, allocations: 0.8538 MB / 452.3 MB, free: 28.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3872, allocations: 0 / 452.3 MB, free: 28.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3872, allocations: 0 / 452.3 MB, free: 28.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.705e-05/0.3872, allocations: 4 kB / 452.3 MB, free: 28.47 MB / 350.1 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.002003/0.3892, allocations: 1.166 MB / 453.5 MB, free: 27.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.3893, allocations: 7.438 kB / 453.5 MB, free: 27.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002411/0.3895, allocations: 138.1 kB / 453.6 MB, free: 27.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.3906, allocations: 0.6675 MB / 454.3 MB, free: 27.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-05/0.3907, allocations: 84.52 kB / 454.4 MB, free: 27.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/0.3909, allocations: 120.2 kB / 454.5 MB, free: 27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002205/0.3931, allocations: 1.082 MB / 455.6 MB, free: 26.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.232e-05/0.3932, allocations: 2.844 kB / 455.6 MB, free: 26.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.593e-05/0.3933, allocations: 47.5 kB / 455.6 MB, free: 26.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.62e-05/0.3933, allocations: 25.88 kB / 455.7 MB, free: 26.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001586/0.3949, allocations: 0.7097 MB / 456.4 MB, free: 26.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005632/0.4006, allocations: 4.15 MB / 460.5 MB, free: 23.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.4018, allocations: 462.2 kB / 461 MB, free: 23.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.717e-05/0.4019, allocations: 17.84 kB / 461 MB, free: 23.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.402, allocations: 36.75 kB / 461 MB, free: 23.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 3.837e-06/0.402, allocations: 0.75 kB / 461 MB, free: 23.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.001538/0.4035, allocations: 0.6527 MB / 461.7 MB, free: 22.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.4036, allocations: 55.5 kB / 461.7 MB, free: 22.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001212/0.4048, allocations: 0.6658 MB / 462.4 MB, free: 22.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.332e-05/0.4049, allocations: 35.89 kB / 462.4 MB, free: 22.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00054/0.4054, allocations: 0.5898 MB / 463 MB, free: 21.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001706/0.4056, allocations: 122.9 kB / 463.2 MB, free: 21.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.989e-05/0.4057, allocations: 10.34 kB / 463.2 MB, free: 21.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.4058, allocations: 330.1 kB / 463.5 MB, free: 21.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005577/0.4064, allocations: 208.3 kB / 463.7 MB, free: 21.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006933/0.4071, allocations: 358.7 kB / 464 MB, free: 21.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006782/0.4078, allocations: 255.4 kB / 464.3 MB, free: 21.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.276e-06/0.4078, allocations: 6.156 kB / 464.3 MB, free: 21.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001739/0.4095, allocations: 0.6569 MB / 465 MB, free: 20.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/0.4096, allocations: 6.781 kB / 465 MB, free: 20.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.4096, allocations: 5.031 kB / 465 MB, free: 20.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.314e-05/0.4097, allocations: 16.22 kB / 465 MB, free: 20.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005916/0.4103, allocations: 101.5 kB / 465.1 MB, free: 20.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.529e-05/0.4103, allocations: 11.41 kB / 465.1 MB, free: 20.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000414/0.4107, allocations: 64.59 kB / 465.2 MB, free: 20.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.995e-05/0.4108, allocations: 21.08 kB / 465.2 MB, free: 20.84 MB / 350.1 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.0006743/0.4115, allocations: 284.1 kB / 465.5 MB, free: 20.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001469/0.4116, allocations: 65.41 kB / 465.5 MB, free: 20.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00136/0.413, allocations: 0.5453 MB / 466.1 MB, free: 20.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.413, allocations: 3.5 kB / 466.1 MB, free: 20.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.4131, allocations: 5.016 kB / 466.1 MB, free: 20.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.4131, allocations: 6.844 kB / 466.1 MB, free: 20.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001593/0.4147, allocations: 0.8385 MB / 466.9 MB, free: 19.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.4147, allocations: 4 kB / 466.9 MB, free: 19.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005082/0.4152, allocations: 65.16 kB / 467 MB, free: 19.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.033e-05/0.4152, allocations: 2.281 kB / 467 MB, free: 19.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.054e-05/0.4153, allocations: 13.17 kB / 467 MB, free: 19.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.4153, allocations: 0.9062 kB / 467 MB, free: 19.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.4153, allocations: 1.594 kB / 467 MB, free: 19.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00173/0.417, allocations: 0.8497 MB / 467.8 MB, free: 19.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001648/0.4172, allocations: 141 kB / 468 MB, free: 19.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.436e-05/0.4173, allocations: 6.766 kB / 468 MB, free: 19.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002795/0.4176, allocations: 11.86 kB / 468 MB, free: 19.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.4177, allocations: 31.19 kB / 468 MB, free: 19.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.442e-05/0.4178, allocations: 12.5 kB / 468 MB, free: 19.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009034/0.4187, allocations: 468.6 kB / 468.5 MB, free: 19.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4187, allocations: 0 / 468.5 MB, free: 19.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009452/0.4197, allocations: 192.9 kB / 468.7 MB, free: 19.16 MB / 350.1 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.0002311/0.4199, allocations: 123.6 kB / 468.8 MB, free: 19.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00136/0.4213, allocations: 496.3 kB / 469.3 MB, free: 18.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4213, allocations: 2.781 kB / 469.3 MB, free: 18.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005006/0.4218, allocations: 220.1 kB / 469.5 MB, free: 18.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007523/0.4226, allocations: 97.03 kB / 469.6 MB, free: 18.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00439/0.427, allocations: 2.195 MB / 471.8 MB, free: 17.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009991/0.428, allocations: 1.085 MB / 472.9 MB, free: 16.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003911/0.4284, allocations: 61.78 kB / 473 MB, free: 16.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001495/0.4286, allocations: 41.7 kB / 473 MB, free: 16.73 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4286, allocations: 0 / 473 MB, free: 16.73 MB / 350.1 MB Notification: Performance of Templates: time 0.01313/0.4417, allocations: 4.22 MB / 477.2 MB, free: 16.29 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.makefile Environment - environmentSimulation: (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 & ./SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World3.Human_Fertility.pipe 2>&1) Environment - environmentSimulation: