Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",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.0007843/0.0007845, allocations: 90.75 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.0008324/0.0008325, 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.258/1.258, allocations: 223.2 MB / 240 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2497/0.2497, allocations: 28.84 MB / 319.9 MB, free: 6.297 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002823/0.0002824, allocations: 8 kB / 388 MB, free: 3.461 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2457, allocations: 57.48 MB / 445.4 MB, free: 32.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.002465/0.2482, allocations: 2.91 MB / 448.4 MB, free: 30.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009769/0.2492, allocations: 0.6582 MB / 449 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002675/0.2494, allocations: 14.53 kB / 449 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002797/0.2497, allocations: 128.3 kB / 449.2 MB, free: 30.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000212/0.25, allocations: 89.67 kB / 449.2 MB, free: 30.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004314/0.2504, allocations: 256.6 kB / 449.5 MB, free: 30.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005296/0.2509, allocations: 0.7719 MB / 450.3 MB, free: 29.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005039/0.2514, allocations: 484.1 kB / 450.7 MB, free: 29.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001376/0.2516, allocations: 240.3 kB / 451 MB, free: 29.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001965/0.2518, allocations: 308.1 kB / 451.3 MB, free: 29.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.426e-05/0.2519, allocations: 20.41 kB / 451.3 MB, free: 29.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.252, allocations: 43.55 kB / 451.3 MB, free: 29.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002026/0.2522, allocations: 334.3 kB / 451.7 MB, free: 29.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001007/0.2523, allocations: 235.8 kB / 451.9 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004658/0.2528, allocations: 0.7875 MB / 452.7 MB, free: 28.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.2528, allocations: 0 / 452.7 MB, free: 28.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2528, allocations: 0 / 452.7 MB, free: 28.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.533e-05/0.2528, allocations: 6.188 kB / 452.7 MB, free: 28.71 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001337/0.2542, allocations: 1.53 MB / 454.2 MB, free: 27.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.2542, allocations: 11.31 kB / 454.2 MB, free: 27.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001565/0.2544, allocations: 166.4 kB / 454.4 MB, free: 27.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/0.2545, allocations: 202 kB / 454.6 MB, free: 27.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005855/0.2551, allocations: 0.6867 MB / 455.3 MB, free: 26.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.595e-05/0.2552, allocations: 75.58 kB / 455.3 MB, free: 26.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.782e-05/0.2553, allocations: 110.2 kB / 455.5 MB, free: 26.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.2566, allocations: 1.161 MB / 456.6 MB, free: 26.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.2566, allocations: 2.625 kB / 456.6 MB, free: 26.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.274e-05/0.2567, allocations: 43.88 kB / 456.7 MB, free: 26.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.2567, allocations: 34.14 kB / 456.7 MB, free: 26.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.2579, allocations: 1.098 MB / 457.8 MB, free: 26.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00352/0.2615, allocations: 3.698 MB / 461.5 MB, free: 23.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001481/0.263, allocations: 1.329 MB / 462.8 MB, free: 23.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004913/0.2635, allocations: 478 kB / 463.3 MB, free: 23.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.332e-05/0.2635, allocations: 30.42 kB / 463.3 MB, free: 23.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.2636, allocations: 37.84 kB / 463.4 MB, free: 23.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.836e-06/0.2636, allocations: 5.062 kB / 463.4 MB, free: 23.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.001771/0.2653, allocations: 1.51 MB / 464.9 MB, free: 23.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.858e-05/0.2654, allocations: 58.66 kB / 464.9 MB, free: 23.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00138/0.2668, allocations: 1.281 MB / 466.2 MB, free: 22.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/0.2668, allocations: 35.83 kB / 466.2 MB, free: 22.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004565/0.2673, allocations: 0.7817 MB / 467 MB, free: 21.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001342/0.2674, allocations: 231.8 kB / 467.2 MB, free: 21.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.212e-05/0.2674, allocations: 10.75 kB / 467.3 MB, free: 21.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.415e-05/0.2675, allocations: 340.3 kB / 467.6 MB, free: 21.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004797/0.268, allocations: 432.7 kB / 468 MB, free: 21.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000527/0.2685, allocations: 0.5275 MB / 468.5 MB, free: 21.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005328/0.2691, allocations: 474.1 kB / 469 MB, free: 20.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.2691, allocations: 0.875 kB / 469 MB, free: 20.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001358/0.2704, allocations: 1.177 MB / 470.2 MB, free: 20.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.2705, allocations: 6.031 kB / 470.2 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.2705, allocations: 2.438 kB / 470.2 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.2705, allocations: 6.25 kB / 470.2 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004346/0.271, allocations: 131.6 kB / 470.3 MB, free: 20.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.749e-05/0.271, allocations: 9.906 kB / 470.3 MB, free: 20.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002261/0.2712, allocations: 55.31 kB / 470.4 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.376e-05/0.2713, allocations: 34.27 kB / 470.4 MB, free: 20.54 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 (82): * Single equations (assignments): 82 * 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.0004023/0.2717, allocations: 370.1 kB / 470.8 MB, free: 20.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.2718, allocations: 139.1 kB / 470.9 MB, free: 20.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001439/0.2732, allocations: 1.191 MB / 472.1 MB, free: 19.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-06/0.2733, allocations: 7.188 kB / 472.1 MB, free: 19.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.2733, allocations: 4.75 kB / 472.1 MB, free: 19.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.2733, allocations: 3.953 kB / 472.1 MB, free: 19.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002929/0.2762, allocations: 2.36 MB / 474.5 MB, free: 19.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.2762, allocations: 0 / 474.5 MB, free: 19.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004313/0.2767, allocations: 116.1 kB / 474.6 MB, free: 19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.095e-06/0.2767, allocations: 2.812 kB / 474.6 MB, free: 19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.317e-05/0.2767, allocations: 15.67 kB / 474.6 MB, free: 18.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.2768, allocations: 2.656 kB / 474.6 MB, free: 18.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2768, allocations: 4 kB / 474.6 MB, free: 18.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002093/0.2789, allocations: 1.867 MB / 476.5 MB, free: 18.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.279, allocations: 201.3 kB / 476.7 MB, free: 18.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.644e-05/0.2791, allocations: 12.3 kB / 476.7 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/0.2793, allocations: 11.5 kB / 476.7 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.2794, allocations: 38.69 kB / 476.7 MB, free: 18.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.618e-05/0.2795, allocations: 17.86 kB / 476.8 MB, free: 18.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001197/0.2807, allocations: 0.8888 MB / 477.7 MB, free: 17.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2807, allocations: 0 / 477.7 MB, free: 17.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005618/0.2812, allocations: 219.7 kB / 477.9 MB, free: 17.41 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 (67): * Single equations (assignments): 67 * 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.001794/0.283, allocations: 2.431 MB / 480.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009968/0.284, allocations: 0.9816 MB / 481.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.2841, allocations: 3.938 kB / 481.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004504/0.2845, allocations: 0.5019 MB / 481.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005591/0.2851, allocations: 90.42 kB / 481.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009022/0.2941, allocations: 10.01 MB / 491.9 MB, free: 4.074 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005838/0.2947, allocations: 1.308 MB / 493.2 MB, free: 2.742 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001993/0.2949, allocations: 72.36 kB / 493.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004513/0.2954, allocations: 0.593 MB / 493.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2954, allocations: 0 / 493.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02869/0.3241, allocations: 17.22 MB / 0.4991 GB, free: 0.957 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001936/0.3243, allocations: 183 kB / 0.4993 GB, free: 0.7109 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.866/2.191, allocations: 0 / 0.4993 GB, free: 0.7109 MB / 366.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1) Environment - environmentSimulation: