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.001055/0.001055, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001038/0.001038, allocations: 191.3 kB / 16.25 MB, free: 6.633 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.274/1.274, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2607/0.2607, allocations: 28.81 MB / 318.9 MB, free: 5.855 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 59.91 kB / 386.2 MB, free: 3.844 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2301, allocations: 56.41 MB / 442.6 MB, free: 39.61 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.003367/0.2335, allocations: 3.647 MB / 446.3 MB, free: 37.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001079/0.2346, allocations: 0.6552 MB / 446.9 MB, free: 37.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000282/0.2349, allocations: 18.22 kB / 446.9 MB, free: 37.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003336/0.2352, allocations: 130.1 kB / 447.1 MB, free: 37.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000265/0.2355, allocations: 87.89 kB / 447.2 MB, free: 37.03 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005224/0.2361, allocations: 311.3 kB / 447.5 MB, free: 37.02 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005745/0.2366, allocations: 0.8544 MB / 448.3 MB, free: 36.92 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005803/0.2372, allocations: 0.6404 MB / 449 MB, free: 36.76 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001891/0.2374, allocations: 337.5 kB / 449.3 MB, free: 36.58 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002271/0.2377, allocations: 443.7 kB / 449.7 MB, free: 36.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.155e-05/0.2378, allocations: 85.31 kB / 449.8 MB, free: 36.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001455/0.2379, allocations: 108.6 kB / 449.9 MB, free: 36.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002254/0.2381, allocations: 441.7 kB / 450.3 MB, free: 36.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002459/0.2384, allocations: 0.618 MB / 451 MB, free: 35.63 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006945/0.2391, allocations: 1.177 MB / 452.1 MB, free: 35.03 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2391, allocations: 0 / 452.1 MB, free: 35.03 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2391, allocations: 0 / 452.1 MB, free: 35.03 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.617e-05/0.2391, allocations: 0 / 452.1 MB, free: 35.03 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001485/0.2406, allocations: 1.785 MB / 453.9 MB, free: 33.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.2407, allocations: 8.812 kB / 453.9 MB, free: 33.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001459/0.2408, allocations: 163.6 kB / 454.1 MB, free: 33.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000154/0.241, allocations: 210.3 kB / 454.3 MB, free: 33.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005371/0.2415, allocations: 0.7451 MB / 455 MB, free: 32.99 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.725e-05/0.2416, allocations: 75.3 kB / 455.1 MB, free: 32.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.726e-05/0.2417, allocations: 114.5 kB / 455.2 MB, free: 32.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.2429, allocations: 1.168 MB / 456.4 MB, free: 32.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.331e-05/0.2429, allocations: 3.938 kB / 456.4 MB, free: 32.42 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.046e-05/0.243, allocations: 40.44 kB / 456.4 MB, free: 32.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.243, allocations: 27 kB / 456.5 MB, free: 32.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.2441, allocations: 1.107 MB / 457.6 MB, free: 32.12 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003139/0.2473, allocations: 3.708 MB / 461.3 MB, free: 30.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.2484, allocations: 1.337 MB / 462.6 MB, free: 29.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003772/0.2488, allocations: 485.5 kB / 463.1 MB, free: 29.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.64e-05/0.2489, allocations: 25.42 kB / 463.1 MB, free: 29.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.712e-05/0.2489, allocations: 41.2 kB / 463.2 MB, free: 29.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 2.074e-06/0.2489, allocations: 0 / 463.2 MB, free: 29.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=67): time 0.001335/0.2502, allocations: 1.521 MB / 464.7 MB, free: 29.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.344e-05/0.2503, allocations: 61.16 kB / 464.7 MB, free: 29.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009867/0.2513, allocations: 1.297 MB / 466 MB, free: 28.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.03e-05/0.2513, allocations: 40.89 kB / 466.1 MB, free: 28.6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003276/0.2516, allocations: 0.772 MB / 466.8 MB, free: 27.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.2517, allocations: 224.6 kB / 467.1 MB, free: 27.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.2519, allocations: 116.9 kB / 467.2 MB, free: 27.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.195e-05/0.2519, allocations: 329.7 kB / 467.5 MB, free: 27.44 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003819/0.2523, allocations: 435.4 kB / 467.9 MB, free: 27.35 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004061/0.2527, allocations: 0.528 MB / 468.5 MB, free: 27.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009003/0.2536, allocations: 0.9897 MB / 469.4 MB, free: 26.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.2536, allocations: 1.375 kB / 469.4 MB, free: 26.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001176/0.2548, allocations: 1.182 MB / 470.6 MB, free: 26.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.2548, allocations: 6.094 kB / 470.6 MB, free: 26.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.2549, allocations: 3.375 kB / 470.6 MB, free: 26.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.2549, allocations: 5.875 kB / 470.6 MB, free: 26.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004344/0.2553, allocations: 129.1 kB / 470.8 MB, free: 26.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.2553, allocations: 14.97 kB / 470.8 MB, free: 26.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/0.2556, allocations: 54.72 kB / 470.8 MB, free: 26.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.44e-05/0.2556, allocations: 27.47 kB / 470.9 MB, free: 26.36 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003678/0.256, allocations: 377.6 kB / 471.2 MB, free: 26.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.2561, allocations: 142.5 kB / 471.4 MB, free: 26.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001246/0.2574, allocations: 1.203 MB / 472.6 MB, free: 25.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.892e-06/0.2574, allocations: 7.844 kB / 472.6 MB, free: 25.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.2574, allocations: 3.938 kB / 472.6 MB, free: 25.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.573e-06/0.2574, allocations: 7.172 kB / 472.6 MB, free: 25.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002135/0.2595, allocations: 2.356 MB / 474.9 MB, free: 24.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.2596, allocations: 0 / 474.9 MB, free: 24.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004221/0.26, allocations: 111.9 kB / 475.1 MB, free: 24.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.26, allocations: 7.25 kB / 475.1 MB, free: 24.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.205e-05/0.26, allocations: 16.38 kB / 475.1 MB, free: 24.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.26, allocations: 7.25 kB / 475.1 MB, free: 24.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.26, allocations: 0 / 475.1 MB, free: 24.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001641/0.2617, allocations: 1.87 MB / 477 MB, free: 24.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/0.2618, allocations: 202.3 kB / 477.2 MB, free: 24.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.476e-05/0.2619, allocations: 14.75 kB / 477.2 MB, free: 24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002087/0.2621, allocations: 10.75 kB / 477.2 MB, free: 23.99 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.079e-05/0.2622, allocations: 42.69 kB / 477.2 MB, free: 23.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.794e-05/0.2622, allocations: 19.66 kB / 477.2 MB, free: 23.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008439/0.2631, allocations: 0.8946 MB / 478.1 MB, free: 23.67 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2631, allocations: 0 / 478.1 MB, free: 23.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004963/0.2636, allocations: 211.7 kB / 478.3 MB, free: 23.59 MB / 366.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 (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.001814/0.2654, allocations: 2.449 MB / 480.8 MB, free: 22.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001251/0.2667, allocations: 1.014 MB / 481.8 MB, free: 22.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2667, allocations: 0 / 481.8 MB, free: 22.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004962/0.2672, allocations: 0.5041 MB / 482.3 MB, free: 22.08 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006008/0.2678, allocations: 95.77 kB / 482.4 MB, free: 22.01 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/0.2797, allocations: 12.93 MB / 495.3 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006999/0.2805, allocations: 1.312 MB / 496.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000223/0.2807, allocations: 76.17 kB / 496.7 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004565/0.2812, allocations: 0.5929 MB / 497.3 MB, free: 12.01 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2812, allocations: 0 / 497.3 MB, free: 12.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3511/0.6323, allocations: 18.27 MB / 0.5035 GB, free: 12.43 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002409/0.6326, allocations: 193.8 kB / 0.5037 GB, free: 12.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.169/2.801, allocations: 0 / 0.5037 GB, free: 12.18 MB / 382.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/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)