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.001297/0.001297, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.0011/0.0011, allocations: 194.8 kB / 16.25 MB, free: 6.621 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.266/1.266, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2562/0.2562, allocations: 28.81 MB / 318.9 MB, free: 5.816 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 55.91 kB / 386.2 MB, free: 3.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.2267, allocations: 56.41 MB / 442.6 MB, free: 39.66 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.003218/0.23, allocations: 3.674 MB / 446.3 MB, free: 37.38 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001019/0.231, allocations: 0.7567 MB / 447 MB, free: 37.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002608/0.2313, allocations: 15.28 kB / 447.1 MB, free: 37.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002946/0.2316, allocations: 125.2 kB / 447.2 MB, free: 37.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002559/0.2318, allocations: 97.91 kB / 447.3 MB, free: 37.03 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005302/0.2324, allocations: 322.9 kB / 447.6 MB, free: 37.01 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005326/0.2329, allocations: 0.8835 MB / 448.5 MB, free: 36.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005432/0.2335, allocations: 0.6326 MB / 449.1 MB, free: 36.74 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001637/0.2336, allocations: 343.2 kB / 449.4 MB, free: 36.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000225/0.2339, allocations: 461.7 kB / 449.9 MB, free: 36.27 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.492e-05/0.234, allocations: 87.16 kB / 450 MB, free: 36.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001372/0.2341, allocations: 118.7 kB / 450.1 MB, free: 36.26 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002045/0.2343, allocations: 443.8 kB / 450.5 MB, free: 36.06 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002299/0.2345, allocations: 0.6247 MB / 451.2 MB, free: 35.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000602/0.2352, allocations: 1.188 MB / 452.3 MB, free: 34.97 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2352, allocations: 0 / 452.3 MB, free: 34.97 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2352, allocations: 3.938 kB / 452.4 MB, free: 34.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.424e-05/0.2352, allocations: 0 / 452.4 MB, free: 34.96 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.001488/0.2367, allocations: 1.807 MB / 454.2 MB, free: 33.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.001e-05/0.2367, allocations: 12.5 kB / 454.2 MB, free: 33.69 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001434/0.2369, allocations: 175.2 kB / 454.3 MB, free: 33.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.237, allocations: 200.5 kB / 454.5 MB, free: 33.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005106/0.2375, allocations: 0.7527 MB / 455.3 MB, free: 32.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.041e-05/0.2376, allocations: 81.17 kB / 455.4 MB, free: 32.86 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.428e-05/0.2377, allocations: 111.2 kB / 455.5 MB, free: 32.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.2389, allocations: 1.189 MB / 456.7 MB, free: 32.33 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.2389, allocations: 3.938 kB / 456.7 MB, free: 32.33 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.256e-05/0.239, allocations: 46.78 kB / 456.7 MB, free: 32.29 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.514e-05/0.239, allocations: 25.94 kB / 456.7 MB, free: 32.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00104/0.24, allocations: 1.114 MB / 457.9 MB, free: 32.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002894/0.2429, allocations: 3.731 MB / 461.6 MB, free: 29.97 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.244, allocations: 1.366 MB / 463 MB, free: 29.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003834/0.2444, allocations: 490.2 kB / 463.4 MB, free: 29.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.146e-05/0.2445, allocations: 29.42 kB / 463.5 MB, free: 29.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005415/0.245, allocations: 0.5451 MB / 464 MB, free: 29.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.214e-06/0.2451, allocations: 0 / 464 MB, free: 29.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.001332/0.2464, allocations: 1.57 MB / 465.6 MB, free: 28.9 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.2464, allocations: 67.94 kB / 465.6 MB, free: 28.83 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009426/0.2474, allocations: 1.301 MB / 466.9 MB, free: 28.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.2474, allocations: 39.78 kB / 467 MB, free: 28.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003222/0.2477, allocations: 0.7718 MB / 467.8 MB, free: 27.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.2479, allocations: 248.6 kB / 468 MB, free: 27.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001227/0.248, allocations: 117.7 kB / 468.1 MB, free: 27.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.343e-05/0.248, allocations: 337.4 kB / 468.4 MB, free: 27.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004212/0.2485, allocations: 445.9 kB / 468.9 MB, free: 27.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004641/0.2489, allocations: 0.5506 MB / 469.4 MB, free: 26.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001007/0.2499, allocations: 1.044 MB / 470.5 MB, free: 26.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.25, allocations: 1.125 kB / 470.5 MB, free: 26.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001201/0.2512, allocations: 1.222 MB / 471.7 MB, free: 26.08 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.2512, allocations: 7.844 kB / 471.7 MB, free: 26.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.2512, allocations: 10.5 kB / 471.7 MB, free: 26.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.2512, allocations: 6.781 kB / 471.7 MB, free: 26.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004296/0.2517, allocations: 139.9 kB / 471.9 MB, free: 26.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.2517, allocations: 10.66 kB / 471.9 MB, free: 26.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002231/0.2519, allocations: 59.95 kB / 471.9 MB, free: 26.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.646e-05/0.252, allocations: 28.88 kB / 472 MB, free: 26 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.0004055/0.2524, allocations: 391.9 kB / 472.3 MB, free: 25.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.2525, allocations: 141.3 kB / 472.5 MB, free: 25.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001311/0.2538, allocations: 1.236 MB / 473.7 MB, free: 25.33 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.2538, allocations: 11.69 kB / 473.7 MB, free: 25.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.2538, allocations: 0 / 473.7 MB, free: 25.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.2538, allocations: 6.375 kB / 473.7 MB, free: 25.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002176/0.256, allocations: 2.424 MB / 476.2 MB, free: 24.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.256, allocations: 0 / 476.2 MB, free: 24.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004446/0.2565, allocations: 116.7 kB / 476.3 MB, free: 24.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.2565, allocations: 6.5 kB / 476.3 MB, free: 24.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.2565, allocations: 20.52 kB / 476.3 MB, free: 24.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.2565, allocations: 2.594 kB / 476.3 MB, free: 24.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2566, allocations: 1.094 kB / 476.3 MB, free: 24.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001717/0.2583, allocations: 1.927 MB / 478.2 MB, free: 23.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001978/0.2585, allocations: 260.1 kB / 478.5 MB, free: 23.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.304e-05/0.2586, allocations: 12.56 kB / 478.5 MB, free: 23.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002309/0.2588, allocations: 11.31 kB / 478.5 MB, free: 23.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.12e-05/0.2589, allocations: 49.73 kB / 478.5 MB, free: 23.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.391e-05/0.2589, allocations: 22.47 kB / 478.6 MB, free: 23.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008547/0.2598, allocations: 0.8978 MB / 479.5 MB, free: 23.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2598, allocations: 0 / 479.5 MB, free: 23.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005196/0.2603, allocations: 216.5 kB / 479.7 MB, free: 23.13 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.001945/0.2623, allocations: 2.504 MB / 482.2 MB, free: 21.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001337/0.2636, allocations: 1.048 MB / 483.2 MB, free: 21.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2636, allocations: 0 / 483.2 MB, free: 21.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000531/0.2642, allocations: 0.5249 MB / 483.8 MB, free: 21.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005851/0.2648, allocations: 90.77 kB / 483.8 MB, free: 21.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01193/0.2767, allocations: 13.13 MB / 497 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006794/0.2774, allocations: 1.313 MB / 498.3 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002271/0.2776, allocations: 82.2 kB / 498.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004516/0.2781, allocations: 0.593 MB / 499 MB, free: 10.57 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2781, allocations: 0 / 499 MB, free: 10.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2939/0.572, allocations: 18.57 MB / 0.5054 GB, free: 10.43 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000231/0.5722, allocations: 192.3 kB / 0.5056 GB, free: 10.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.128/2.701, allocations: 0 / 0.5056 GB, free: 10.18 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)