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.006873/0.006873, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001681/0.001681, allocations: 195.8 kB / 16.68 MB, free: 5.926 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1822/0.1822, allocations: 28.78 MB / 319.3 MB, free: 1.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 63.91 kB / 443.8 MB, free: 3.027 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1252, allocations: 56.42 MB / 0.4885 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.005643/0.131, allocations: 3.67 MB / 0.4921 GB, free: 6.871 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00235/0.1333, allocations: 0.7752 MB / 0.4929 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009103/0.1343, allocations: 16 kB / 0.4929 GB, free: 6.078 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006774/0.135, allocations: 178.3 kB / 0.4931 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007322/0.1358, allocations: 134.8 kB / 0.4932 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.1369, allocations: 387.4 kB / 0.4936 GB, free: 5.391 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001272/0.1381, allocations: 0.8601 MB / 0.4944 GB, free: 4.527 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001006/0.1392, allocations: 0.6404 MB / 0.495 GB, free: 3.848 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004031/0.1396, allocations: 346.4 kB / 0.4954 GB, free: 3.508 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003764/0.14, allocations: 433.5 kB / 0.4958 GB, free: 3.082 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001432/0.1401, allocations: 88 kB / 0.4959 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002057/0.1403, allocations: 116 kB / 0.496 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003349/0.1407, allocations: 434.5 kB / 0.4964 GB, free: 2.457 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004402/0.1411, allocations: 0.628 MB / 0.497 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001169/0.1423, allocations: 1.268 MB / 0.4982 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1423, allocations: 0 / 0.4982 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1423, allocations: 4 kB / 0.4982 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.977e-05/0.1424, allocations: 0 / 0.4982 GB, free: 0.5469 MB / 382.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.002093/0.1445, allocations: 1.803 MB / 0.5 GB, free: 14.68 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.1445, allocations: 8.031 kB / 0.5 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002001/0.1447, allocations: 166.8 kB / 0.5002 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002557/0.145, allocations: 206.4 kB / 0.5004 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008511/0.1458, allocations: 0.7745 MB / 0.5011 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.544e-05/0.1459, allocations: 78.52 kB / 0.5012 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.146, allocations: 108.3 kB / 0.5013 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.1475, allocations: 1.19 MB / 0.5025 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.748e-05/0.1475, allocations: 3.938 kB / 0.5025 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.524e-05/0.1476, allocations: 48 kB / 0.5025 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.274e-05/0.1476, allocations: 28 kB / 0.5025 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001375/0.149, allocations: 1.113 MB / 0.5036 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003946/0.1529, allocations: 3.69 MB / 0.5072 GB, free: 7.023 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.1545, allocations: 1.369 MB / 0.5086 GB, free: 5.645 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005264/0.155, allocations: 494.6 kB / 0.509 GB, free: 5.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.904e-05/0.1551, allocations: 24.86 kB / 0.5091 GB, free: 5.137 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006914/0.1558, allocations: 0.5471 MB / 0.5096 GB, free: 4.574 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.976e-06/0.1558, allocations: 4 kB / 0.5096 GB, free: 4.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.001817/0.1577, allocations: 1.566 MB / 0.5111 GB, free: 3 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.202e-05/0.1577, allocations: 64 kB / 0.5112 GB, free: 2.926 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00131/0.159, allocations: 1.297 MB / 0.5124 GB, free: 1.621 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.62e-05/0.1591, allocations: 41.7 kB / 0.5125 GB, free: 1.574 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000533/0.1596, allocations: 0.7717 MB / 0.5132 GB, free: 0.793 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000163/0.1598, allocations: 248.4 kB / 0.5135 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.16, allocations: 122.6 kB / 0.5136 GB, free: 432 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1601, allocations: 334 kB / 0.5139 GB, free: 92 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2499/0.4099, allocations: 443.8 kB / 0.5143 GB, free: 26.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007095/0.4107, allocations: 0.5479 MB / 0.5149 GB, free: 26.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001167/0.4119, allocations: 1.05 MB / 0.5159 GB, free: 26.7 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.4119, allocations: 0.5 kB / 0.5159 GB, free: 26.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001622/0.4135, allocations: 1.217 MB / 0.5171 GB, free: 26.65 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.4135, allocations: 7.375 kB / 0.5171 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.4136, allocations: 3.562 kB / 0.5171 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.625e-05/0.4136, allocations: 7.406 kB / 0.5171 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004924/0.4141, allocations: 143.5 kB / 0.5172 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.4141, allocations: 8.719 kB / 0.5172 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000309/0.4144, allocations: 59.02 kB / 0.5173 GB, free: 26.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.046e-05/0.4145, allocations: 25.81 kB / 0.5173 GB, free: 26.65 MB / 398.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.0005742/0.4151, allocations: 389.8 kB / 0.5177 GB, free: 26.53 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001405/0.4152, allocations: 143.4 kB / 0.5178 GB, free: 26.53 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001559/0.4168, allocations: 1.241 MB / 0.519 GB, free: 26.46 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.4168, allocations: 7.625 kB / 0.5191 GB, free: 26.46 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.4168, allocations: 0 / 0.5191 GB, free: 26.46 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.4168, allocations: 5.375 kB / 0.5191 GB, free: 26.46 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002817/0.4196, allocations: 2.42 MB / 0.5214 GB, free: 26.13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.4197, allocations: 7.703 kB / 0.5214 GB, free: 26.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004595/0.4201, allocations: 117 kB / 0.5215 GB, free: 26.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.744e-06/0.4201, allocations: 2.375 kB / 0.5215 GB, free: 26.13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.072e-05/0.4202, allocations: 19.69 kB / 0.5216 GB, free: 26.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.81e-06/0.4202, allocations: 2.438 kB / 0.5216 GB, free: 26.13 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.4202, allocations: 7.641 kB / 0.5216 GB, free: 26.13 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002391/0.4226, allocations: 1.925 MB / 0.5235 GB, free: 25.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002904/0.4229, allocations: 251.4 kB / 0.5237 GB, free: 25.76 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.529e-05/0.423, allocations: 11.7 kB / 0.5237 GB, free: 25.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002274/0.4232, allocations: 15.66 kB / 0.5237 GB, free: 25.76 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.828e-05/0.4233, allocations: 45.19 kB / 0.5238 GB, free: 25.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.509e-05/0.4234, allocations: 20.31 kB / 0.5238 GB, free: 25.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001262/0.4246, allocations: 0.8998 MB / 0.5247 GB, free: 25.64 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4246, allocations: 1.031 kB / 0.5247 GB, free: 25.64 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006625/0.4253, allocations: 219.3 kB / 0.5249 GB, free: 25.62 MB / 398.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.00248/0.4278, allocations: 2.497 MB / 0.5273 GB, free: 24.71 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00151/0.4293, allocations: 1.022 MB / 0.5283 GB, free: 24.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4293, allocations: 1.656 kB / 0.5283 GB, free: 24.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006167/0.43, allocations: 0.5261 MB / 0.5288 GB, free: 24.39 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006107/0.4306, allocations: 105 kB / 0.5289 GB, free: 24.33 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01623/0.4468, allocations: 11.67 MB / 0.5403 GB, free: 19.61 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009981/0.4479, allocations: 1.319 MB / 0.5416 GB, free: 18.85 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003059/0.4482, allocations: 78.42 kB / 0.5417 GB, free: 18.83 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005687/0.4488, allocations: 0.5947 MB / 0.5423 GB, free: 18.32 MB / 398.1 MB Notification: Performance of SimCode: time 1.393e-06/0.4488, allocations: 0 / 0.5423 GB, free: 18.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04021/0.489, allocations: 19.32 MB / 0.5611 GB, free: 1.289 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.03/10.52, allocations: 5.891 kB / 0.5611 GB, free: 1.289 MB / 398.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)