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.001048/0.001048, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 197 kB / 16.54 MB, free: 6.672 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.292/1.292, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2538/0.2538, allocations: 28.81 MB / 319.2 MB, free: 5.715 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 67.91 kB / 386.7 MB, free: 3.508 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2455, allocations: 56.4 MB / 443.1 MB, free: 39.65 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.003683/0.2492, allocations: 3.682 MB / 446.8 MB, free: 37.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001557/0.2508, allocations: 0.7781 MB / 447.6 MB, free: 37.08 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004116/0.2512, allocations: 15.66 kB / 447.6 MB, free: 37.08 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003638/0.2516, allocations: 177.1 kB / 447.8 MB, free: 36.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002845/0.2519, allocations: 131.8 kB / 447.9 MB, free: 36.9 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006053/0.2525, allocations: 376 kB / 448.3 MB, free: 36.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005499/0.2531, allocations: 0.8547 MB / 449.1 MB, free: 36.78 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005832/0.2536, allocations: 0.6444 MB / 449.8 MB, free: 36.54 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001824/0.2538, allocations: 347.7 kB / 450.1 MB, free: 36.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/0.2541, allocations: 434.4 kB / 450.5 MB, free: 36.08 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001109/0.2542, allocations: 87.28 kB / 450.6 MB, free: 36.08 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001544/0.2544, allocations: 113.4 kB / 450.7 MB, free: 36.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002166/0.2546, allocations: 432.9 kB / 451.2 MB, free: 35.87 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002556/0.2548, allocations: 0.6268 MB / 451.8 MB, free: 35.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006463/0.2555, allocations: 1.189 MB / 453 MB, free: 34.78 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.2555, allocations: 0 / 453 MB, free: 34.78 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2555, allocations: 0 / 453 MB, free: 34.78 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.507e-05/0.2555, allocations: 0 / 453 MB, free: 34.78 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.001602/0.2571, allocations: 1.813 MB / 454.8 MB, free: 33.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.2572, allocations: 8.562 kB / 454.8 MB, free: 33.51 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001537/0.2573, allocations: 171.8 kB / 455 MB, free: 33.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001663/0.2575, allocations: 205.7 kB / 455.2 MB, free: 33.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005701/0.2581, allocations: 0.7487 MB / 455.9 MB, free: 32.72 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.459e-05/0.2581, allocations: 79.8 kB / 456 MB, free: 32.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.255e-05/0.2582, allocations: 114.8 kB / 456.1 MB, free: 32.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.2594, allocations: 1.19 MB / 457.3 MB, free: 32.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.2595, allocations: 6.656 kB / 457.3 MB, free: 32.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.704e-05/0.2595, allocations: 43.88 kB / 457.3 MB, free: 32.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.843e-05/0.2596, allocations: 27.34 kB / 457.4 MB, free: 32.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001144/0.2607, allocations: 1.119 MB / 458.5 MB, free: 31.83 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003115/0.2638, allocations: 3.73 MB / 462.2 MB, free: 29.78 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.265, allocations: 1.362 MB / 463.6 MB, free: 29.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004123/0.2655, allocations: 492.5 kB / 464.1 MB, free: 29.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.063e-05/0.2655, allocations: 31.45 kB / 464.1 MB, free: 29.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005743/0.2661, allocations: 0.5442 MB / 464.6 MB, free: 29.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.214e-06/0.2661, allocations: 2.906 kB / 464.6 MB, free: 29.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.00147/0.2676, allocations: 1.567 MB / 466.2 MB, free: 28.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.583e-05/0.2676, allocations: 63.88 kB / 466.3 MB, free: 28.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001061/0.2687, allocations: 1.304 MB / 467.6 MB, free: 28.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.925e-05/0.2688, allocations: 36.45 kB / 467.6 MB, free: 28.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003582/0.2691, allocations: 0.7731 MB / 468.4 MB, free: 27.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.2692, allocations: 242.3 kB / 468.6 MB, free: 27.36 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001339/0.2694, allocations: 132.1 kB / 468.7 MB, free: 27.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.699e-05/0.2694, allocations: 330.6 kB / 469.1 MB, free: 26.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004411/0.2699, allocations: 439.2 kB / 469.5 MB, free: 26.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004938/0.2704, allocations: 0.5569 MB / 470.1 MB, free: 26.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.2715, allocations: 1.04 MB / 471.1 MB, free: 26.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.2715, allocations: 1 kB / 471.1 MB, free: 26.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001316/0.2728, allocations: 1.227 MB / 472.3 MB, free: 25.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.2728, allocations: 10.38 kB / 472.3 MB, free: 25.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.2728, allocations: 3.219 kB / 472.3 MB, free: 25.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.2729, allocations: 5.531 kB / 472.3 MB, free: 25.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004739/0.2733, allocations: 141.4 kB / 472.5 MB, free: 25.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/0.2734, allocations: 13.25 kB / 472.5 MB, free: 25.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002491/0.2736, allocations: 56.75 kB / 472.6 MB, free: 25.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.022e-05/0.2737, allocations: 32.22 kB / 472.6 MB, free: 25.81 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.0004226/0.2741, allocations: 395.8 kB / 473 MB, free: 25.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/0.2742, allocations: 150.3 kB / 473.1 MB, free: 25.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001389/0.2756, allocations: 1.236 MB / 474.4 MB, free: 25.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.2756, allocations: 11.34 kB / 474.4 MB, free: 25.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2757, allocations: 0 / 474.4 MB, free: 25.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.2757, allocations: 4.641 kB / 474.4 MB, free: 25.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002329/0.278, allocations: 2.414 MB / 476.8 MB, free: 24.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.278, allocations: 4 kB / 476.8 MB, free: 24.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004558/0.2785, allocations: 123.6 kB / 476.9 MB, free: 24.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.2785, allocations: 6.688 kB / 476.9 MB, free: 24.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.358e-05/0.2785, allocations: 13.5 kB / 476.9 MB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.2785, allocations: 2.75 kB / 476.9 MB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.2786, allocations: 0 / 476.9 MB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001833/0.2804, allocations: 1.928 MB / 478.9 MB, free: 23.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002075/0.2806, allocations: 253.4 kB / 479.1 MB, free: 23.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.528e-05/0.2807, allocations: 19.84 kB / 479.1 MB, free: 23.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002388/0.281, allocations: 11.69 kB / 479.1 MB, free: 23.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.544e-05/0.281, allocations: 41.66 kB / 479.2 MB, free: 23.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.322e-05/0.2811, allocations: 18.5 kB / 479.2 MB, free: 23.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009328/0.282, allocations: 0.9003 MB / 480.1 MB, free: 23.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.282, allocations: 0 / 480.1 MB, free: 23.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005246/0.2826, allocations: 216.9 kB / 480.3 MB, free: 22.95 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.002144/0.2847, allocations: 2.502 MB / 482.8 MB, free: 21.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00142/0.2861, allocations: 1.055 MB / 483.9 MB, free: 21.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2862, allocations: 0.6875 kB / 483.9 MB, free: 21.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005364/0.2867, allocations: 0.5239 MB / 484.4 MB, free: 21.4 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005765/0.2873, allocations: 96.3 kB / 484.5 MB, free: 21.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01251/0.2998, allocations: 12.58 MB / 497.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007968/0.3006, allocations: 1.318 MB / 498.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002523/0.3009, allocations: 73.16 kB / 498.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004917/0.3014, allocations: 0.5968 MB / 499 MB, free: 11.02 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3014, allocations: 0 / 499 MB, free: 11.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.387/3.689, allocations: 18.66 MB / 0.5056 GB, free: 10.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.01/18.7, allocations: 5.781 kB / 0.5056 GB, free: 10.55 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)