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.001401/0.001401, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001653/0.001653, allocations: 199.8 kB / 16.14 MB, free: 6.797 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 239.8 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3006/0.3006, allocations: 28.8 MB / 318.7 MB, free: 5.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 55.89 kB / 386 MB, free: 4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2482, allocations: 56.42 MB / 442.4 MB, free: 39.68 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.003335/0.2516, allocations: 3.692 MB / 446.1 MB, free: 37.38 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.2526, allocations: 0.8056 MB / 446.9 MB, free: 37.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002535/0.2529, allocations: 15.5 kB / 447 MB, free: 37.16 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003312/0.2533, allocations: 118.9 kB / 447.1 MB, free: 37.11 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002135/0.2535, allocations: 71.38 kB / 447.1 MB, free: 37.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005052/0.254, allocations: 397.2 kB / 447.5 MB, free: 37.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005446/0.2545, allocations: 0.9335 MB / 448.5 MB, free: 36.92 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005969/0.2551, allocations: 0.6869 MB / 449.1 MB, free: 36.51 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001586/0.2553, allocations: 306.5 kB / 449.4 MB, free: 36.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001853/0.2555, allocations: 387.3 kB / 449.8 MB, free: 36.11 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.424e-05/0.2556, allocations: 52.28 kB / 449.9 MB, free: 36.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001265/0.2557, allocations: 74.88 kB / 449.9 MB, free: 36.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001423/0.2559, allocations: 244 kB / 450.2 MB, free: 35.98 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002053/0.2561, allocations: 498.5 kB / 450.7 MB, free: 35.61 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005848/0.2567, allocations: 1.118 MB / 451.8 MB, free: 35.06 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.2567, allocations: 0 / 451.8 MB, free: 35.06 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.2567, allocations: 0 / 451.8 MB, free: 35.06 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.222e-05/0.2567, allocations: 0 / 451.8 MB, free: 35.06 MB / 366.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.00136/0.2581, allocations: 1.391 MB / 453.2 MB, free: 34.08 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.2581, allocations: 10.5 kB / 453.2 MB, free: 34.08 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001683/0.2583, allocations: 164.6 kB / 453.4 MB, free: 33.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001339/0.2584, allocations: 143.9 kB / 453.5 MB, free: 33.89 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006202/0.2591, allocations: 0.6897 MB / 454.2 MB, free: 33.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.544e-05/0.2591, allocations: 89.11 kB / 454.3 MB, free: 33.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.807e-05/0.2592, allocations: 110.3 kB / 454.4 MB, free: 33.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001266/0.2605, allocations: 1.096 MB / 455.5 MB, free: 32.72 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.136e-05/0.2605, allocations: 3.938 kB / 455.5 MB, free: 32.72 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.071e-05/0.2606, allocations: 47.66 kB / 455.5 MB, free: 32.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.808e-05/0.2606, allocations: 31.53 kB / 455.6 MB, free: 32.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000959/0.2616, allocations: 0.7095 MB / 456.3 MB, free: 32.45 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002995/0.2646, allocations: 4.154 MB / 460.4 MB, free: 29.53 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006491/0.2652, allocations: 463.7 kB / 460.9 MB, free: 29.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002165/0.2655, allocations: 192.9 kB / 461.1 MB, free: 29.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.234e-05/0.2655, allocations: 18.7 kB / 461.1 MB, free: 29.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.404e-05/0.2656, allocations: 37.69 kB / 461.1 MB, free: 29.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.773e-06/0.2656, allocations: 0 / 461.1 MB, free: 29.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008174/0.2664, allocations: 0.6457 MB / 461.8 MB, free: 29.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.469e-05/0.2664, allocations: 58 kB / 461.8 MB, free: 28.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005639/0.267, allocations: 0.6704 MB / 462.5 MB, free: 28.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.267, allocations: 32.64 kB / 462.5 MB, free: 28.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002337/0.2673, allocations: 0.5913 MB / 463.1 MB, free: 28.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.102e-05/0.2673, allocations: 129.5 kB / 463.2 MB, free: 28.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.2675, allocations: 100.3 kB / 463.3 MB, free: 28.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.639e-05/0.2675, allocations: 323.4 kB / 463.7 MB, free: 27.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000261/0.2678, allocations: 211 kB / 463.9 MB, free: 27.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002993/0.2681, allocations: 362.5 kB / 464.2 MB, free: 27.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005741/0.2687, allocations: 0.5789 MB / 464.8 MB, free: 27.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.2687, allocations: 0 / 464.8 MB, free: 27.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007656/0.2695, allocations: 0.6702 MB / 465.5 MB, free: 26.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.2695, allocations: 5.719 kB / 465.5 MB, free: 26.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.2695, allocations: 5.781 kB / 465.5 MB, free: 26.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.2695, allocations: 5.844 kB / 465.5 MB, free: 26.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003262/0.2698, allocations: 99.02 kB / 465.6 MB, free: 26.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.2699, allocations: 11.92 kB / 465.6 MB, free: 26.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002064/0.2701, allocations: 45.66 kB / 465.6 MB, free: 26.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.854e-05/0.2701, allocations: 21.72 kB / 465.7 MB, free: 26.76 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003224/0.2704, allocations: 284.2 kB / 465.9 MB, free: 26.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.489e-05/0.2705, allocations: 71.44 kB / 466 MB, free: 26.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007243/0.2713, allocations: 0.5427 MB / 466.5 MB, free: 26.31 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.2713, allocations: 2.5 kB / 466.5 MB, free: 26.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.2713, allocations: 2.562 kB / 466.5 MB, free: 26.31 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.2713, allocations: 0 / 466.5 MB, free: 26.31 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007218/0.272, allocations: 0.8455 MB / 467.4 MB, free: 25.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.272, allocations: 112 / 467.4 MB, free: 25.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003234/0.2724, allocations: 65.69 kB / 467.5 MB, free: 25.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.2724, allocations: 0 / 467.5 MB, free: 25.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.801e-05/0.2724, allocations: 16.97 kB / 467.5 MB, free: 25.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.2724, allocations: 0 / 467.5 MB, free: 25.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2724, allocations: 4 kB / 467.5 MB, free: 25.87 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000878/0.2733, allocations: 0.8347 MB / 468.3 MB, free: 25.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.052e-05/0.2734, allocations: 143.2 kB / 468.5 MB, free: 25.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.649e-05/0.2735, allocations: 13.03 kB / 468.5 MB, free: 25.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.2736, allocations: 9.844 kB / 468.5 MB, free: 25.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.242e-05/0.2737, allocations: 30.88 kB / 468.5 MB, free: 25.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.2737, allocations: 12.12 kB / 468.5 MB, free: 25.35 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000403/0.2741, allocations: 473.9 kB / 469 MB, free: 25.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2741, allocations: 0 / 469 MB, free: 25.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004622/0.2746, allocations: 194.3 kB / 469.2 MB, free: 25.07 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001134/0.2758, allocations: 1.414 MB / 470.6 MB, free: 24.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005953/0.2764, allocations: 479.4 kB / 471 MB, free: 24.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2764, allocations: 0 / 471 MB, free: 24.05 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002596/0.2766, allocations: 227.5 kB / 471.3 MB, free: 23.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005714/0.2772, allocations: 101.5 kB / 471.4 MB, free: 23.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007423/0.2847, allocations: 7.383 MB / 478.8 MB, free: 19.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004876/0.2852, allocations: 1.066 MB / 479.8 MB, free: 18.95 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002226/0.2854, allocations: 59.64 kB / 479.9 MB, free: 18.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003324/0.2857, allocations: 409.9 kB / 480.3 MB, free: 18.59 MB / 366.1 MB Notification: Performance of SimCode: time 6.22e-07/0.2857, allocations: 0 / 480.3 MB, free: 18.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.026/0.3117, allocations: 12.16 MB / 492.4 MB, free: 17.37 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001442/0.3119, allocations: 200 kB / 492.6 MB, free: 17.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.91/2.222, allocations: 0 / 492.6 MB, free: 17.12 MB / 366.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/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)