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: "" <> 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 100 kB / 15.05 MB, free: 1.105 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.001159/0.001159, allocations: 177.3 kB / 15.95 MB, free: 216 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.343/1.343, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3144/0.3144, allocations: 28.84 MB / 319.8 MB, free: 6.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003348/0.000335, allocations: 8 kB / 387.9 MB, free: 3.453 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.335, allocations: 57.48 MB / 445.3 MB, free: 32.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.002858/0.3379, allocations: 3.007 MB / 448.4 MB, free: 30.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.3393, allocations: 0.8031 MB / 449.2 MB, free: 30.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003074/0.3396, allocations: 15.81 kB / 449.2 MB, free: 30.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002375/0.3398, allocations: 83.09 kB / 449.3 MB, free: 29.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00025/0.3401, allocations: 87.06 kB / 449.3 MB, free: 29.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005124/0.3406, allocations: 262.8 kB / 449.6 MB, free: 29.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005914/0.3412, allocations: 0.564 MB / 450.2 MB, free: 29.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005464/0.3418, allocations: 0.5048 MB / 450.7 MB, free: 29.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.3419, allocations: 208.5 kB / 450.9 MB, free: 29.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.3421, allocations: 266.2 kB / 451.1 MB, free: 28.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.401e-05/0.3421, allocations: 20.56 kB / 451.1 MB, free: 28.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001125/0.3423, allocations: 43.41 kB / 451.2 MB, free: 28.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001343/0.3424, allocations: 183.7 kB / 451.4 MB, free: 28.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.75e-05/0.3425, allocations: 197 kB / 451.6 MB, free: 28.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005751/0.3431, allocations: 0.8552 MB / 452.4 MB, free: 28.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.3431, allocations: 0 / 452.4 MB, free: 28.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.3431, allocations: 0 / 452.4 MB, free: 28.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.592e-05/0.3431, allocations: 6.688 kB / 452.4 MB, free: 28.5 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.00133/0.3445, allocations: 1.165 MB / 453.6 MB, free: 27.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.3445, allocations: 14 kB / 453.6 MB, free: 27.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001915/0.3447, allocations: 171.3 kB / 453.8 MB, free: 27.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001481/0.3449, allocations: 139.5 kB / 453.9 MB, free: 27.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007893/0.3457, allocations: 0.6575 MB / 454.6 MB, free: 27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.633e-05/0.3458, allocations: 90.97 kB / 454.7 MB, free: 26.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001528/0.3459, allocations: 109 kB / 454.8 MB, free: 26.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001679/0.3476, allocations: 1.082 MB / 455.8 MB, free: 26.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.431e-05/0.3477, allocations: 6.812 kB / 455.8 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.642e-05/0.3477, allocations: 43.69 kB / 455.9 MB, free: 26.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.163e-05/0.3478, allocations: 30.59 kB / 455.9 MB, free: 26.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.3488, allocations: 0.7112 MB / 456.6 MB, free: 26.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003493/0.3523, allocations: 4.164 MB / 460.8 MB, free: 23.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007865/0.3531, allocations: 459.9 kB / 461.2 MB, free: 23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.924e-05/0.3532, allocations: 18.86 kB / 461.3 MB, free: 22.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.3532, allocations: 44.36 kB / 461.3 MB, free: 22.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 2.044e-06/0.3532, allocations: 0 / 461.3 MB, free: 22.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.001002/0.3542, allocations: 0.6468 MB / 462 MB, free: 22.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.1e-05/0.3543, allocations: 55.78 kB / 462 MB, free: 22.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007905/0.3551, allocations: 0.6631 MB / 462.7 MB, free: 22.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.3551, allocations: 35.8 kB / 462.7 MB, free: 22.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003181/0.3554, allocations: 0.5913 MB / 463.3 MB, free: 21.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.089e-05/0.3555, allocations: 123.1 kB / 463.4 MB, free: 21.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.841e-05/0.3556, allocations: 10.19 kB / 463.4 MB, free: 21.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.412e-05/0.3556, allocations: 331.7 kB / 463.8 MB, free: 21.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003275/0.356, allocations: 203.7 kB / 464 MB, free: 21.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003837/0.3564, allocations: 356.6 kB / 464.3 MB, free: 21.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003814/0.3567, allocations: 262.3 kB / 464.6 MB, free: 21.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.3568, allocations: 0.9375 kB / 464.6 MB, free: 21.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009925/0.3578, allocations: 0.6627 MB / 465.2 MB, free: 20.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.3578, allocations: 7.062 kB / 465.2 MB, free: 20.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.3578, allocations: 9.266 kB / 465.2 MB, free: 20.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.3578, allocations: 8.25 kB / 465.2 MB, free: 20.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003695/0.3582, allocations: 107.3 kB / 465.3 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.919e-05/0.3582, allocations: 15.59 kB / 465.4 MB, free: 20.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002388/0.3585, allocations: 55.12 kB / 465.4 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.828e-05/0.3585, allocations: 22.75 kB / 465.4 MB, free: 20.74 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.0004151/0.359, allocations: 269.6 kB / 465.7 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.286e-05/0.3591, allocations: 70.97 kB / 465.8 MB, free: 20.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008883/0.3599, allocations: 0.549 MB / 466.3 MB, free: 20.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.36, allocations: 12.39 kB / 466.3 MB, free: 20.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.36, allocations: 0 / 466.3 MB, free: 20.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.36, allocations: 3.281 kB / 466.3 MB, free: 20.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001183/0.3612, allocations: 0.8345 MB / 467.2 MB, free: 19.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.3612, allocations: 0 / 467.2 MB, free: 19.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003394/0.3615, allocations: 68.97 kB / 467.2 MB, free: 19.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.3616, allocations: 2.125 kB / 467.2 MB, free: 19.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.06e-05/0.3616, allocations: 13.59 kB / 467.3 MB, free: 19.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.3616, allocations: 1.406 kB / 467.3 MB, free: 19.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.3616, allocations: 4.516 kB / 467.3 MB, free: 19.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00115/0.3628, allocations: 0.8456 MB / 468.1 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.3629, allocations: 144.3 kB / 468.2 MB, free: 19.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.523e-05/0.3629, allocations: 11.97 kB / 468.3 MB, free: 19.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.3631, allocations: 15.12 kB / 468.3 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.115e-05/0.3632, allocations: 28.12 kB / 468.3 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.266e-05/0.3632, allocations: 12.73 kB / 468.3 MB, free: 19.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000588/0.3638, allocations: 467.4 kB / 468.8 MB, free: 19.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3638, allocations: 1 kB / 468.8 MB, free: 19.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006326/0.3645, allocations: 196.9 kB / 469 MB, free: 19.05 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.001421/0.3659, allocations: 1.429 MB / 470.4 MB, free: 18.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007922/0.3667, allocations: 494.2 kB / 470.9 MB, free: 18.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3667, allocations: 0 / 470.9 MB, free: 18.01 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003094/0.367, allocations: 225.1 kB / 471.1 MB, free: 17.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000486/0.3675, allocations: 90.5 kB / 471.2 MB, free: 17.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007644/0.3752, allocations: 8.192 MB / 479.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008528/0.3761, allocations: 1.089 MB / 480.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000269/0.3763, allocations: 62.58 kB / 480.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004401/0.3768, allocations: 404.5 kB / 480.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3768, allocations: 3.938 kB / 480.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02426/0.4011, allocations: 11.76 MB / 492.7 MB, free: 3.434 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001337/0.4013, allocations: 179.6 kB / 492.9 MB, free: 3.199 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.975/2.376, allocations: 0 / 492.9 MB, free: 3.199 MB / 350.1 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) Environment - environmentSimulation: