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.00102/0.00102, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001067/0.001067, allocations: 200.2 kB / 16.26 MB, free: 6.617 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.275/1.275, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2517/0.2517, allocations: 28.81 MB / 318.9 MB, free: 5.852 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 59.91 kB / 386.2 MB, free: 3.855 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2658, allocations: 56.42 MB / 442.6 MB, free: 39.67 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.003485/0.2693, allocations: 3.694 MB / 446.3 MB, free: 37.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001307/0.2706, allocations: 0.7979 MB / 447.1 MB, free: 37.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003419/0.271, allocations: 19.19 kB / 447.1 MB, free: 37.15 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003046/0.2713, allocations: 121.4 kB / 447.3 MB, free: 37.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002386/0.2716, allocations: 59.77 kB / 447.3 MB, free: 37.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005881/0.2722, allocations: 410.9 kB / 447.7 MB, free: 37.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005999/0.2728, allocations: 1.024 MB / 448.7 MB, free: 36.8 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006143/0.2734, allocations: 0.7073 MB / 449.4 MB, free: 36.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001762/0.2736, allocations: 370.5 kB / 449.8 MB, free: 36.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001951/0.2738, allocations: 423.7 kB / 450.2 MB, free: 35.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.613e-05/0.2739, allocations: 122.7 kB / 450.3 MB, free: 35.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.274, allocations: 141.7 kB / 450.5 MB, free: 35.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001585/0.2742, allocations: 313.5 kB / 450.8 MB, free: 35.69 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002281/0.2744, allocations: 0.5439 MB / 451.3 MB, free: 35.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006088/0.275, allocations: 1.195 MB / 452.5 MB, free: 34.67 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.275, allocations: 0 / 452.5 MB, free: 34.67 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2751, allocations: 0 / 452.5 MB, free: 34.67 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.2751, allocations: 0 / 452.5 MB, free: 34.67 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.001321/0.2764, allocations: 1.379 MB / 453.9 MB, free: 33.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.2764, allocations: 13.55 kB / 453.9 MB, free: 33.7 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001584/0.2766, allocations: 166.2 kB / 454.1 MB, free: 33.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001266/0.2767, allocations: 150 kB / 454.2 MB, free: 33.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005732/0.2773, allocations: 0.6794 MB / 454.9 MB, free: 33 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.191e-05/0.2774, allocations: 93.41 kB / 455 MB, free: 32.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.429e-05/0.2775, allocations: 113.2 kB / 455.1 MB, free: 32.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.2787, allocations: 1.098 MB / 456.2 MB, free: 32.33 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.48e-05/0.2788, allocations: 11.27 kB / 456.2 MB, free: 32.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.848e-05/0.2789, allocations: 45.09 kB / 456.3 MB, free: 32.29 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.42e-05/0.2789, allocations: 29.56 kB / 456.3 MB, free: 32.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001101/0.28, allocations: 0.7086 MB / 457 MB, free: 32.06 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002811/0.2828, allocations: 4.157 MB / 461.2 MB, free: 29.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006047/0.2834, allocations: 451.4 kB / 461.6 MB, free: 29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002169/0.2837, allocations: 189.6 kB / 461.8 MB, free: 28.94 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.187e-05/0.2837, allocations: 17.56 kB / 461.8 MB, free: 28.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.529e-05/0.2837, allocations: 37.31 kB / 461.8 MB, free: 28.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.443e-06/0.2837, allocations: 4 kB / 461.8 MB, free: 28.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0007979/0.2846, allocations: 0.6401 MB / 462.5 MB, free: 28.67 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.884e-05/0.2846, allocations: 58.25 kB / 462.5 MB, free: 28.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005374/0.2851, allocations: 0.6711 MB / 463.2 MB, free: 28.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.206e-05/0.2852, allocations: 29.7 kB / 463.2 MB, free: 28.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002077/0.2854, allocations: 0.5909 MB / 463.8 MB, free: 27.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.474e-05/0.2854, allocations: 125.7 kB / 464 MB, free: 27.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.2855, allocations: 107.5 kB / 464.1 MB, free: 27.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.193e-05/0.2856, allocations: 326.5 kB / 464.4 MB, free: 27.35 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002538/0.2859, allocations: 201.5 kB / 464.6 MB, free: 27.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002939/0.2862, allocations: 360.3 kB / 464.9 MB, free: 27.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005435/0.2867, allocations: 0.5821 MB / 465.5 MB, free: 26.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.2867, allocations: 3.938 kB / 465.5 MB, free: 26.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007322/0.2875, allocations: 0.6636 MB / 466.2 MB, free: 26.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.2875, allocations: 7.688 kB / 466.2 MB, free: 26.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.2875, allocations: 5.5 kB / 466.2 MB, free: 26.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.2875, allocations: 8.062 kB / 466.2 MB, free: 26.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00032/0.2878, allocations: 101.1 kB / 466.3 MB, free: 26.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.879e-06/0.2879, allocations: 7.562 kB / 466.3 MB, free: 26.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002159/0.2881, allocations: 55.23 kB / 466.4 MB, free: 26.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.782e-05/0.2881, allocations: 21.45 kB / 466.4 MB, free: 26.39 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.0002921/0.2884, allocations: 286.7 kB / 466.7 MB, free: 26.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.191e-05/0.2885, allocations: 75.12 kB / 466.7 MB, free: 26.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007049/0.2892, allocations: 0.5345 MB / 467.3 MB, free: 25.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.2892, allocations: 5.312 kB / 467.3 MB, free: 25.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2892, allocations: 0 / 467.3 MB, free: 25.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.2892, allocations: 3.375 kB / 467.3 MB, free: 25.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000667/0.2899, allocations: 0.8429 MB / 468.1 MB, free: 25.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.2899, allocations: 0 / 468.1 MB, free: 25.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003184/0.2902, allocations: 69.66 kB / 468.2 MB, free: 25.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.2902, allocations: 4 kB / 468.2 MB, free: 25.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.469e-05/0.2903, allocations: 6.906 kB / 468.2 MB, free: 25.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.2903, allocations: 2.656 kB / 468.2 MB, free: 25.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2903, allocations: 0 / 468.2 MB, free: 25.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000822/0.2911, allocations: 0.8418 MB / 469 MB, free: 25.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.335e-05/0.2912, allocations: 141 kB / 469.2 MB, free: 25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.478e-05/0.2913, allocations: 13.69 kB / 469.2 MB, free: 24.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000183/0.2914, allocations: 6.562 kB / 469.2 MB, free: 24.99 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.57e-05/0.2915, allocations: 31.06 kB / 469.2 MB, free: 24.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.2915, allocations: 13.06 kB / 469.2 MB, free: 24.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003776/0.2919, allocations: 471.7 kB / 469.7 MB, free: 24.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2919, allocations: 0 / 469.7 MB, free: 24.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004321/0.2924, allocations: 191.6 kB / 469.9 MB, free: 24.7 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.0009766/0.2933, allocations: 1.422 MB / 471.3 MB, free: 23.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006581/0.294, allocations: 0.4901 MB / 471.8 MB, free: 23.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.294, allocations: 0 / 471.8 MB, free: 23.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002654/0.2943, allocations: 219 kB / 472 MB, free: 23.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005476/0.2949, allocations: 103.7 kB / 472.1 MB, free: 23.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007232/0.3021, allocations: 7.395 MB / 479.5 MB, free: 19.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005112/0.3026, allocations: 1.067 MB / 480.6 MB, free: 18.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002038/0.3028, allocations: 65.5 kB / 480.6 MB, free: 18.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003376/0.3032, allocations: 401.2 kB / 481 MB, free: 18.19 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3032, allocations: 0.9688 kB / 481 MB, free: 18.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2333/0.5365, allocations: 12.39 MB / 493.4 MB, free: 16.91 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001824/0.5367, allocations: 205.2 kB / 493.6 MB, free: 16.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.007/2.544, allocations: 0 / 493.6 MB, free: 16.66 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)