Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",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.000816/0.000816, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.0009159/0.0009161, allocations: 172.7 kB / 15.95 MB, free: 208 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.297/1.297, allocations: 223.2 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2777/0.2777, allocations: 28.84 MB / 319.9 MB, free: 6.234 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002836/0.0002839, allocations: 12 kB / 388 MB, free: 3.434 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2519, allocations: 57.48 MB / 445.4 MB, free: 32.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.002581/0.2545, allocations: 2.902 MB / 448.4 MB, free: 30.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.2557, allocations: 0.6456 MB / 449 MB, free: 30.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003532/0.2561, allocations: 14.62 kB / 449 MB, free: 30.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002629/0.2564, allocations: 112.2 kB / 449.1 MB, free: 30.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002168/0.2566, allocations: 79.12 kB / 449.2 MB, free: 30.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004957/0.2571, allocations: 253.6 kB / 449.4 MB, free: 30 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005726/0.2577, allocations: 0.7692 MB / 450.2 MB, free: 29.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005213/0.2582, allocations: 477.4 kB / 450.7 MB, free: 29.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001844/0.2584, allocations: 231.8 kB / 450.9 MB, free: 29.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002326/0.2587, allocations: 301 kB / 451.2 MB, free: 29.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.912e-05/0.2587, allocations: 21.81 kB / 451.2 MB, free: 29.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.2589, allocations: 43.72 kB / 451.3 MB, free: 29.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002666/0.2592, allocations: 329.3 kB / 451.6 MB, free: 29.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.2593, allocations: 219.8 kB / 451.8 MB, free: 28.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006056/0.2599, allocations: 0.7782 MB / 452.6 MB, free: 28.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.2599, allocations: 0 / 452.6 MB, free: 28.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.2599, allocations: 0 / 452.6 MB, free: 28.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.184e-05/0.26, allocations: 6.188 kB / 452.6 MB, free: 28.65 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001488/0.2614, allocations: 1.476 MB / 454.1 MB, free: 27.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.2615, allocations: 11.09 kB / 454.1 MB, free: 27.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001818/0.2617, allocations: 168.1 kB / 454.2 MB, free: 27.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001877/0.2619, allocations: 196.3 kB / 454.4 MB, free: 27.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006453/0.2625, allocations: 0.6771 MB / 455.1 MB, free: 26.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.721e-05/0.2626, allocations: 78.38 kB / 455.2 MB, free: 26.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.613e-05/0.2627, allocations: 105.6 kB / 455.3 MB, free: 26.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.2639, allocations: 1.136 MB / 456.4 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.264, allocations: 0 / 456.4 MB, free: 26.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.219e-05/0.264, allocations: 42.5 kB / 456.5 MB, free: 26.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.993e-05/0.2641, allocations: 30.2 kB / 456.5 MB, free: 26.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.2651, allocations: 1.061 MB / 457.6 MB, free: 26.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003887/0.269, allocations: 3.637 MB / 461.2 MB, free: 23.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.2704, allocations: 1.272 MB / 462.5 MB, free: 23.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004497/0.2709, allocations: 461.9 kB / 462.9 MB, free: 23.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.118e-05/0.271, allocations: 24.11 kB / 462.9 MB, free: 23.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.747e-05/0.271, allocations: 38.06 kB / 463 MB, free: 23.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.405e-06/0.271, allocations: 0 / 463 MB, free: 23.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.001653/0.2727, allocations: 1.44 MB / 464.4 MB, free: 23.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.2727, allocations: 62.66 kB / 464.5 MB, free: 23.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001417/0.2741, allocations: 1.217 MB / 465.7 MB, free: 22.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.823e-05/0.2742, allocations: 40.36 kB / 465.7 MB, free: 22.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004583/0.2747, allocations: 0.7565 MB / 466.5 MB, free: 21.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/0.2748, allocations: 226.8 kB / 466.7 MB, free: 21.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.223e-05/0.2748, allocations: 10.66 kB / 466.7 MB, free: 21.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.179e-05/0.2749, allocations: 336.2 kB / 467 MB, free: 21.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004615/0.2754, allocations: 409.5 kB / 467.4 MB, free: 21.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004934/0.2759, allocations: 0.5006 MB / 467.9 MB, free: 21.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004853/0.2764, allocations: 452.7 kB / 468.4 MB, free: 21.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.2764, allocations: 1.094 kB / 468.4 MB, free: 21.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001307/0.2777, allocations: 1.124 MB / 469.5 MB, free: 20.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.2777, allocations: 6.656 kB / 469.5 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.2777, allocations: 7.406 kB / 469.5 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.2778, allocations: 14.22 kB / 469.5 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004179/0.2782, allocations: 128.7 kB / 469.7 MB, free: 20.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.2782, allocations: 6.047 kB / 469.7 MB, free: 20.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002478/0.2785, allocations: 56.25 kB / 469.7 MB, free: 20.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.643e-05/0.2785, allocations: 22.97 kB / 469.8 MB, free: 20.63 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (CIAF.Integrator1.local_reset,Pollution.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Population.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 81 * 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.0004721/0.279, allocations: 359 kB / 470.1 MB, free: 20.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.2791, allocations: 139.6 kB / 470.2 MB, free: 20.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001376/0.2805, allocations: 1.146 MB / 471.4 MB, free: 19.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.2805, allocations: 6.5 kB / 471.4 MB, free: 19.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.2805, allocations: 4.75 kB / 471.4 MB, free: 19.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.2805, allocations: 4.078 kB / 471.4 MB, free: 19.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002664/0.2832, allocations: 2.274 MB / 473.7 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.2832, allocations: 1.625 kB / 473.7 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004584/0.2837, allocations: 105.3 kB / 473.8 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.175e-05/0.2837, allocations: 7.062 kB / 473.8 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.598e-05/0.2838, allocations: 18.86 kB / 473.8 MB, free: 19.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.2838, allocations: 2.453 kB / 473.8 MB, free: 19.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2838, allocations: 1.062 kB / 473.8 MB, free: 19.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002044/0.2858, allocations: 1.789 MB / 475.6 MB, free: 18.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002329/0.2861, allocations: 198.4 kB / 475.8 MB, free: 18.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.423e-05/0.2862, allocations: 12.75 kB / 475.8 MB, free: 18.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.2864, allocations: 10.03 kB / 475.8 MB, free: 18.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.291e-05/0.2865, allocations: 45.7 kB / 475.9 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.275e-05/0.2865, allocations: 18.22 kB / 475.9 MB, free: 18.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001194/0.2877, allocations: 0.8456 MB / 476.7 MB, free: 17.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.2877, allocations: 0 / 476.7 MB, free: 17.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006514/0.2884, allocations: 201.2 kB / 476.9 MB, free: 17.92 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Population.Integrator1.y,Natural_Resources.Integrator1.y,Capital_Investment.Integrator1.y,Pollution.Integrator1.y,CIAF.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 (66): * Single equations (assignments): 66 * 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.001897/0.2903, allocations: 2.356 MB / 479.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001/0.2913, allocations: 0.9357 MB / 480.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.2913, allocations: 7.938 kB / 480.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000434/0.2918, allocations: 495.5 kB / 480.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006587/0.2924, allocations: 84.27 kB / 480.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/0.3026, allocations: 9.533 MB / 490.3 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006061/0.3033, allocations: 1.288 MB / 491.6 MB, free: 4.301 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002356/0.3035, allocations: 72.36 kB / 491.7 MB, free: 4.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004552/0.304, allocations: 0.5696 MB / 492.2 MB, free: 3.66 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.304, allocations: 0 / 492.2 MB, free: 3.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03108/0.3351, allocations: 16.64 MB / 0.497 GB, free: 3.125 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001817/0.3353, allocations: 193.3 kB / 0.4971 GB, free: 2.875 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.8/2.136, allocations: 0 / 0.4971 GB, free: 2.875 MB / 366.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1) Environment - environmentSimulation: