Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",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.00134/0.001339, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001594/0.001594, allocations: 196.3 kB / 16.14 MB, free: 6.734 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.281/1.281, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2575/0.2575, allocations: 28.8 MB / 318.8 MB, free: 5.934 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 55.91 kB / 386 MB, free: 3.984 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2253/0.2266, allocations: 56.42 MB / 442.4 MB, free: 39.81 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.003219/0.2299, allocations: 3.674 MB / 446.1 MB, free: 37.53 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001415/0.2313, allocations: 0.7561 MB / 446.9 MB, free: 37.28 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004298/0.2317, allocations: 17.38 kB / 446.9 MB, free: 37.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003198/0.2321, allocations: 127 kB / 447 MB, free: 37.22 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002255/0.2323, allocations: 94.17 kB / 447.1 MB, free: 37.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004639/0.2328, allocations: 327.6 kB / 447.4 MB, free: 37.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004721/0.2333, allocations: 0.8258 MB / 448.2 MB, free: 37.06 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004805/0.2338, allocations: 0.6068 MB / 448.9 MB, free: 36.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001482/0.2339, allocations: 321.7 kB / 449.2 MB, free: 36.79 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001952/0.2341, allocations: 438.5 kB / 449.6 MB, free: 36.55 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.333e-05/0.2342, allocations: 57.44 kB / 449.7 MB, free: 36.55 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/0.2343, allocations: 84.38 kB / 449.7 MB, free: 36.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001881/0.2345, allocations: 413.8 kB / 450.1 MB, free: 36.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002192/0.2347, allocations: 0.5975 MB / 450.7 MB, free: 35.9 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004908/0.2352, allocations: 1.146 MB / 451.9 MB, free: 35.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.2353, allocations: 2.5 kB / 451.9 MB, free: 35.31 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.91e-07/0.2353, allocations: 4 kB / 451.9 MB, free: 35.31 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.2353, allocations: 0 / 451.9 MB, free: 35.31 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.001369/0.2366, allocations: 1.797 MB / 453.7 MB, free: 34.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.02e-05/0.2367, allocations: 10.78 kB / 453.7 MB, free: 34.05 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001262/0.2368, allocations: 174.3 kB / 453.9 MB, free: 33.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001373/0.237, allocations: 204.6 kB / 454.1 MB, free: 33.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004814/0.2374, allocations: 0.7452 MB / 454.8 MB, free: 33.26 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/0.2375, allocations: 80.89 kB / 454.9 MB, free: 33.22 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.611e-05/0.2376, allocations: 111.6 kB / 455 MB, free: 33.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.2387, allocations: 1.193 MB / 456.2 MB, free: 32.69 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.2387, allocations: 11 kB / 456.2 MB, free: 32.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.879e-05/0.2388, allocations: 47.64 kB / 456.3 MB, free: 32.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.2388, allocations: 28.31 kB / 456.3 MB, free: 32.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001061/0.2399, allocations: 1.108 MB / 457.4 MB, free: 32.37 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002766/0.2426, allocations: 3.728 MB / 461.1 MB, free: 30.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001046/0.2437, allocations: 1.359 MB / 462.5 MB, free: 29.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003771/0.2441, allocations: 491.5 kB / 463 MB, free: 29.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.94e-05/0.2441, allocations: 34.81 kB / 463 MB, free: 29.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005314/0.2447, allocations: 0.5492 MB / 463.5 MB, free: 29.69 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 1.803e-06/0.2447, allocations: 0 / 463.5 MB, free: 29.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.00131/0.246, allocations: 1.562 MB / 465.1 MB, free: 29.26 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.169e-05/0.246, allocations: 63.88 kB / 465.2 MB, free: 29.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009326/0.247, allocations: 1.3 MB / 466.5 MB, free: 28.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.662e-05/0.247, allocations: 40.48 kB / 466.5 MB, free: 28.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003319/0.2473, allocations: 0.7797 MB / 467.3 MB, free: 28.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.876e-05/0.2474, allocations: 240.3 kB / 467.5 MB, free: 27.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.2476, allocations: 127.1 kB / 467.6 MB, free: 27.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.089e-05/0.2476, allocations: 332.7 kB / 468 MB, free: 27.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004119/0.248, allocations: 447.3 kB / 468.4 MB, free: 27.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004702/0.2485, allocations: 0.5534 MB / 469 MB, free: 27.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009855/0.2495, allocations: 1.049 MB / 470 MB, free: 26.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.2495, allocations: 1.125 kB / 470 MB, free: 26.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001185/0.2507, allocations: 1.22 MB / 471.2 MB, free: 26.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.2507, allocations: 6.688 kB / 471.2 MB, free: 26.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.2507, allocations: 2.281 kB / 471.2 MB, free: 26.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.2508, allocations: 6.625 kB / 471.2 MB, free: 26.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004124/0.2512, allocations: 147.1 kB / 471.4 MB, free: 26.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.2512, allocations: 6.562 kB / 471.4 MB, free: 26.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.2514, allocations: 60.64 kB / 471.5 MB, free: 26.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.652e-05/0.2515, allocations: 31.22 kB / 471.5 MB, free: 26.36 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = true ) "Minimal derivative of population" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_QL,min_dPop,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 (89): * Single equations (assignments): 89 * 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.000398/0.2519, allocations: 382.5 kB / 471.9 MB, free: 26.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.252, allocations: 146 kB / 472 MB, free: 26.06 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001252/0.2532, allocations: 1.236 MB / 473.2 MB, free: 25.69 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.2533, allocations: 11.59 kB / 473.2 MB, free: 25.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.2533, allocations: 0 / 473.2 MB, free: 25.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/0.2533, allocations: 8.531 kB / 473.3 MB, free: 25.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002112/0.2554, allocations: 2.425 MB / 475.7 MB, free: 24.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.2554, allocations: 0 / 475.7 MB, free: 24.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003992/0.2558, allocations: 119 kB / 475.8 MB, free: 24.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.2558, allocations: 7.281 kB / 475.8 MB, free: 24.76 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.196e-05/0.2559, allocations: 13.53 kB / 475.8 MB, free: 24.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/0.2559, allocations: 5.75 kB / 475.8 MB, free: 24.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2559, allocations: 1.062 kB / 475.8 MB, free: 24.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001654/0.2576, allocations: 1.925 MB / 477.7 MB, free: 24.12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001814/0.2577, allocations: 253.9 kB / 478 MB, free: 23.92 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.571e-05/0.2578, allocations: 14.84 kB / 478 MB, free: 23.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002001/0.258, allocations: 11.31 kB / 478 MB, free: 23.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.909e-05/0.2581, allocations: 46.25 kB / 478.1 MB, free: 23.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.014e-05/0.2581, allocations: 18.56 kB / 478.1 MB, free: 23.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000818/0.259, allocations: 0.8976 MB / 479 MB, free: 23.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.259, allocations: 0 / 479 MB, free: 23.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004853/0.2595, allocations: 220.3 kB / 479.2 MB, free: 23.5 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001844/0.2613, allocations: 2.512 MB / 481.7 MB, free: 22.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.2623, allocations: 1.014 MB / 482.7 MB, free: 22.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2623, allocations: 9.125 kB / 482.7 MB, free: 22.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004902/0.2628, allocations: 0.5233 MB / 483.3 MB, free: 21.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000534/0.2634, allocations: 88.78 kB / 483.3 MB, free: 21.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/0.2746, allocations: 13.13 MB / 496.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006209/0.2752, allocations: 1.312 MB / 497.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002121/0.2754, allocations: 81.08 kB / 497.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004361/0.2759, allocations: 0.5969 MB / 498.5 MB, free: 11 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2759, allocations: 0 / 498.5 MB, free: 11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.31/1.586, allocations: 18.35 MB / 0.5047 GB, free: 11.05 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002279/1.586, allocations: 191.6 kB / 0.5049 GB, free: 10.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.114/3.7, allocations: 0 / 0.5049 GB, free: 10.8 MB / 382.1 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)