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.0008015/0.0008015, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0007806/0.0007806, allocations: 168.7 kB / 15.95 MB, free: 204 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.231/1.231, allocations: 223.2 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2748/0.2748, allocations: 28.84 MB / 319.9 MB, free: 6.277 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003062/0.0003063, allocations: 8 kB / 388 MB, free: 3.422 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2389/0.2392, allocations: 57.48 MB / 445.5 MB, free: 32.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World3.Human_Fertility): time 0.002345/0.2416, allocations: 2.965 MB / 448.4 MB, free: 30.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009821/0.2426, allocations: 0.7982 MB / 449.2 MB, free: 30.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000248/0.2428, allocations: 19.16 kB / 449.2 MB, free: 30.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002758/0.2431, allocations: 110.3 kB / 449.4 MB, free: 30.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001827/0.2433, allocations: 65.64 kB / 449.4 MB, free: 30.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004502/0.2438, allocations: 255.1 kB / 449.7 MB, free: 29.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005773/0.2444, allocations: 0.8931 MB / 450.6 MB, free: 29.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004865/0.2448, allocations: 0.4906 MB / 451.1 MB, free: 29.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.245, allocations: 213 kB / 451.3 MB, free: 29.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001501/0.2451, allocations: 274.3 kB / 451.5 MB, free: 28.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.609e-05/0.2452, allocations: 23 kB / 451.6 MB, free: 28.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001015/0.2453, allocations: 48.22 kB / 451.6 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.2454, allocations: 171.5 kB / 451.8 MB, free: 28.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.553e-05/0.2455, allocations: 201.5 kB / 452 MB, free: 28.72 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004902/0.246, allocations: 0.863 MB / 452.8 MB, free: 28.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.246, allocations: 3.938 kB / 452.8 MB, free: 28.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.246, allocations: 0 / 452.8 MB, free: 28.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.246, allocations: 0 / 452.8 MB, free: 28.48 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.001107/0.2472, allocations: 1.162 MB / 454 MB, free: 27.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.2472, allocations: 13.55 kB / 454 MB, free: 27.65 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001672/0.2474, allocations: 166.1 kB / 454.2 MB, free: 27.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001218/0.2475, allocations: 140.8 kB / 454.3 MB, free: 27.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005786/0.2481, allocations: 0.6679 MB / 455 MB, free: 26.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.884e-05/0.2481, allocations: 86.91 kB / 455.1 MB, free: 26.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.649e-05/0.2482, allocations: 117.5 kB / 455.2 MB, free: 26.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.2494, allocations: 1.081 MB / 456.3 MB, free: 26.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.2495, allocations: 6.594 kB / 456.3 MB, free: 26.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.49e-05/0.2495, allocations: 50.12 kB / 456.3 MB, free: 26.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.2496, allocations: 28.97 kB / 456.3 MB, free: 26.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009149/0.2505, allocations: 0.7053 MB / 457 MB, free: 26.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00303/0.2535, allocations: 4.159 MB / 461.2 MB, free: 23.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000691/0.2542, allocations: 465 kB / 461.7 MB, free: 22.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002234/0.2545, allocations: 190.7 kB / 461.8 MB, free: 22.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.324e-05/0.2545, allocations: 14.09 kB / 461.9 MB, free: 22.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.603e-05/0.2545, allocations: 44.84 kB / 461.9 MB, free: 22.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 1.864e-06/0.2546, allocations: 1.344 kB / 461.9 MB, free: 22.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008896/0.2554, allocations: 0.6535 MB / 462.6 MB, free: 22.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.306e-05/0.2555, allocations: 59.75 kB / 462.6 MB, free: 22.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000641/0.2561, allocations: 0.6601 MB / 463.3 MB, free: 22.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.2562, allocations: 33.88 kB / 463.3 MB, free: 22.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002498/0.2564, allocations: 0.5921 MB / 463.9 MB, free: 21.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.786e-05/0.2565, allocations: 130.4 kB / 464 MB, free: 21.7 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.826e-05/0.2565, allocations: 10.25 kB / 464 MB, free: 21.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.76e-05/0.2566, allocations: 324.6 kB / 464.4 MB, free: 21.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002855/0.2569, allocations: 206.2 kB / 464.6 MB, free: 21.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003417/0.2572, allocations: 362.9 kB / 464.9 MB, free: 21.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003564/0.2576, allocations: 259.6 kB / 465.2 MB, free: 20.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.2576, allocations: 1.125 kB / 465.2 MB, free: 20.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008303/0.2584, allocations: 0.6708 MB / 465.8 MB, free: 20.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.2585, allocations: 10.64 kB / 465.8 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.2585, allocations: 5.156 kB / 465.8 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.2585, allocations: 7.719 kB / 465.9 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003245/0.2588, allocations: 102.1 kB / 466 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.2589, allocations: 7.188 kB / 466 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002022/0.2591, allocations: 57.59 kB / 466 MB, free: 20.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.222e-05/0.2591, allocations: 30.06 kB / 466 MB, free: 20.66 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.0003228/0.2594, allocations: 281 kB / 466.3 MB, free: 20.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.692e-05/0.2595, allocations: 71.02 kB / 466.4 MB, free: 20.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007935/0.2603, allocations: 0.5517 MB / 466.9 MB, free: 20.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.2603, allocations: 4.844 kB / 466.9 MB, free: 20.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2603, allocations: 0 / 466.9 MB, free: 20.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.024e-06/0.2604, allocations: 1.969 kB / 467 MB, free: 20.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008978/0.2613, allocations: 0.8365 MB / 467.8 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.2613, allocations: 0 / 467.8 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003131/0.2616, allocations: 65.81 kB / 467.9 MB, free: 19.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.2616, allocations: 4.969 kB / 467.9 MB, free: 19.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.2616, allocations: 12.83 kB / 467.9 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.2616, allocations: 6.031 kB / 467.9 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2616, allocations: 1.781 kB / 467.9 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009945/0.2626, allocations: 0.8452 MB / 468.7 MB, free: 19.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.609e-05/0.2627, allocations: 143.8 kB / 468.9 MB, free: 19.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.485e-05/0.2628, allocations: 11.62 kB / 468.9 MB, free: 19.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.263, allocations: 13.03 kB / 468.9 MB, free: 19.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.283e-05/0.263, allocations: 30.94 kB / 468.9 MB, free: 19.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.851e-05/0.2631, allocations: 7.969 kB / 468.9 MB, free: 19.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005362/0.2636, allocations: 468.1 kB / 469.4 MB, free: 19.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2636, allocations: 4 kB / 469.4 MB, free: 19.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006017/0.2642, allocations: 197 kB / 469.6 MB, free: 18.96 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.001266/0.2655, allocations: 1.412 MB / 471 MB, free: 18.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000725/0.2662, allocations: 498.7 kB / 471.5 MB, free: 17.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2662, allocations: 0 / 471.5 MB, free: 17.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00028/0.2665, allocations: 224.4 kB / 471.7 MB, free: 17.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005414/0.2671, allocations: 103.8 kB / 471.8 MB, free: 17.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00644/0.2735, allocations: 5.253 MB / 477 MB, free: 15.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005843/0.2741, allocations: 1.064 MB / 478.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002243/0.2744, allocations: 59.89 kB / 478.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000351/0.2747, allocations: 403.8 kB / 478.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of SimCode: time 7.51e-07/0.2747, allocations: 192 / 478.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02211/0.2969, allocations: 11.77 MB / 490.3 MB, free: 5.887 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001185/0.297, allocations: 203.7 kB / 490.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.738/2.035, allocations: 0 / 490.5 MB, free: 5.637 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: