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.001278/0.001278, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 197.1 kB / 16.53 MB, free: 6.664 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.297/1.297, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2617/0.2617, allocations: 28.81 MB / 319.2 MB, free: 5.723 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 67.89 kB / 386.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2342, allocations: 56.41 MB / 443.1 MB, free: 39.7 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.003408/0.2376, allocations: 3.707 MB / 446.8 MB, free: 37.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.2387, allocations: 0.8702 MB / 447.7 MB, free: 37.14 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002476/0.2389, allocations: 18.56 kB / 447.7 MB, free: 37.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002783/0.2392, allocations: 161.5 kB / 447.9 MB, free: 37.04 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002276/0.2395, allocations: 106.6 kB / 448 MB, free: 36.97 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005577/0.24, allocations: 455.7 kB / 448.4 MB, free: 36.96 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005621/0.2406, allocations: 1.017 MB / 449.5 MB, free: 36.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005961/0.2412, allocations: 0.7061 MB / 450.2 MB, free: 36.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001729/0.2414, allocations: 371.2 kB / 450.5 MB, free: 35.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001942/0.2416, allocations: 425.5 kB / 450.9 MB, free: 35.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.824e-05/0.2417, allocations: 115 kB / 451.1 MB, free: 35.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001425/0.2418, allocations: 142.5 kB / 451.2 MB, free: 35.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001552/0.242, allocations: 314.1 kB / 451.5 MB, free: 35.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002206/0.2422, allocations: 0.541 MB / 452 MB, free: 35.06 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006014/0.2428, allocations: 1.197 MB / 453.2 MB, free: 34.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2428, allocations: 0 / 453.2 MB, free: 34.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2429, allocations: 0 / 453.2 MB, free: 34.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.2429, allocations: 4 kB / 453.2 MB, free: 34.46 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.001283/0.2442, allocations: 1.378 MB / 454.6 MB, free: 33.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.939e-05/0.2442, allocations: 8.25 kB / 454.6 MB, free: 33.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001618/0.2444, allocations: 173.1 kB / 454.8 MB, free: 33.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.2445, allocations: 143.5 kB / 454.9 MB, free: 33.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005844/0.2451, allocations: 0.6871 MB / 455.6 MB, free: 32.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.274e-05/0.2451, allocations: 84.39 kB / 455.7 MB, free: 32.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.421e-05/0.2452, allocations: 112 kB / 455.8 MB, free: 32.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.2464, allocations: 1.102 MB / 456.9 MB, free: 32.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.2464, allocations: 6.781 kB / 456.9 MB, free: 32.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.717e-05/0.2465, allocations: 43.69 kB / 457 MB, free: 32.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.658e-05/0.2465, allocations: 26.03 kB / 457 MB, free: 32.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000926/0.2475, allocations: 0.7088 MB / 457.7 MB, free: 31.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002779/0.2502, allocations: 4.142 MB / 461.8 MB, free: 28.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006288/0.2509, allocations: 470 kB / 462.3 MB, free: 28.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002042/0.2511, allocations: 190.2 kB / 462.5 MB, free: 28.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.148e-05/0.2512, allocations: 15.12 kB / 462.5 MB, free: 28.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.254e-05/0.2512, allocations: 38.84 kB / 462.5 MB, free: 28.69 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.372e-06/0.2512, allocations: 0 / 462.5 MB, free: 28.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0007683/0.2519, allocations: 0.6447 MB / 463.2 MB, free: 28.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.888e-05/0.252, allocations: 61.3 kB / 463.2 MB, free: 28.4 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000551/0.2525, allocations: 0.6661 MB / 463.9 MB, free: 28.12 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.2526, allocations: 36.61 kB / 463.9 MB, free: 28.08 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002248/0.2528, allocations: 0.5877 MB / 464.5 MB, free: 27.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.561e-05/0.2529, allocations: 133.2 kB / 464.7 MB, free: 27.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.253, allocations: 101.6 kB / 464.8 MB, free: 27.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.78e-05/0.253, allocations: 323 kB / 465.1 MB, free: 27.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002546/0.2533, allocations: 207.3 kB / 465.3 MB, free: 27.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002905/0.2536, allocations: 362.2 kB / 465.6 MB, free: 26.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005474/0.2541, allocations: 0.5753 MB / 466.2 MB, free: 26.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2542, allocations: 0 / 466.2 MB, free: 26.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007486/0.2549, allocations: 0.6691 MB / 466.9 MB, free: 26.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.2549, allocations: 5.875 kB / 466.9 MB, free: 26.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.2549, allocations: 5.875 kB / 466.9 MB, free: 26.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.255, allocations: 5.812 kB / 466.9 MB, free: 26.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003113/0.2553, allocations: 101.5 kB / 467 MB, free: 26.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.2553, allocations: 17.03 kB / 467 MB, free: 26.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001967/0.2555, allocations: 49.19 kB / 467.1 MB, free: 26.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.71e-05/0.2555, allocations: 21.69 kB / 467.1 MB, free: 26.18 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.0002763/0.2558, allocations: 282.1 kB / 467.4 MB, free: 25.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.216e-05/0.2559, allocations: 68.08 kB / 467.4 MB, free: 25.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006773/0.2566, allocations: 0.5403 MB / 468 MB, free: 25.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.2566, allocations: 2.688 kB / 468 MB, free: 25.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.2566, allocations: 3.188 kB / 468 MB, free: 25.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.2566, allocations: 2.25 kB / 468 MB, free: 25.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006563/0.2573, allocations: 0.843 MB / 468.8 MB, free: 25.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2573, allocations: 0 / 468.8 MB, free: 25.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002986/0.2576, allocations: 71.14 kB / 468.9 MB, free: 25.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.2576, allocations: 2.625 kB / 468.9 MB, free: 25.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/0.2576, allocations: 10.62 kB / 468.9 MB, free: 25.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.2576, allocations: 5.719 kB / 468.9 MB, free: 25.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2576, allocations: 0 / 468.9 MB, free: 25.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007834/0.2584, allocations: 0.8322 MB / 469.7 MB, free: 24.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.211e-05/0.2585, allocations: 149.7 kB / 469.9 MB, free: 24.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.163e-05/0.2586, allocations: 10.62 kB / 469.9 MB, free: 24.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.2587, allocations: 9.25 kB / 469.9 MB, free: 24.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.216e-05/0.2588, allocations: 24.2 kB / 469.9 MB, free: 24.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.2588, allocations: 11.97 kB / 469.9 MB, free: 24.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003746/0.2592, allocations: 474.7 kB / 470.4 MB, free: 24.58 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2592, allocations: 0 / 470.4 MB, free: 24.58 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004353/0.2596, allocations: 198.3 kB / 470.6 MB, free: 24.5 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.001025/0.2607, allocations: 1.418 MB / 472 MB, free: 23.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006852/0.2614, allocations: 499.2 kB / 472.5 MB, free: 23.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2614, allocations: 3.938 kB / 472.5 MB, free: 23.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002573/0.2616, allocations: 218.2 kB / 472.7 MB, free: 23.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005507/0.2622, allocations: 100.1 kB / 472.8 MB, free: 23.35 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007076/0.2693, allocations: 6.923 MB / 479.7 MB, free: 19.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004682/0.2698, allocations: 1.068 MB / 480.8 MB, free: 18.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001995/0.27, allocations: 63.55 kB / 480.9 MB, free: 18.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00031/0.2703, allocations: 408.7 kB / 481.3 MB, free: 18.47 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2703, allocations: 0 / 481.3 MB, free: 18.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.192/3.462, allocations: 12.51 MB / 493.8 MB, free: 16.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.9/18.36, allocations: 19.27 kB / 493.8 MB, free: 16.86 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)