Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 176.2 kB / 7.649 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 221.5 MB / 229.6 MB, free: 7.531 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009196/0.0009195, allocations: 93.53 kB / 280.5 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1937/0.1937, allocations: 28.84 MB / 360.1 MB, free: 2.223 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.8e-05/1.78e-05, allocations: 4 kB / 423.9 MB, free: 32.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1198, allocations: 57.49 MB / 481.4 MB, free: 6.75 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3864/0.5062, allocations: 79.96 MB / 0.5482 GB, free: 10.46 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/0.5065, allocations: 61.94 kB / 0.5482 GB, free: 10.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02979/0.5363, allocations: 14.03 MB / 0.5619 GB, free: 6.043 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5363, allocations: 0 / 0.5619 GB, free: 6.043 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.398e-05/0.5364, allocations: 30.75 kB / 0.5619 GB, free: 6.043 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001366/0.5378, allocations: 1.347 MB / 0.5633 GB, free: 5.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.5378, allocations: 11.64 kB / 0.5633 GB, free: 5.066 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001845/0.538, allocations: 193.6 kB / 0.5635 GB, free: 4.965 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007736/0.5388, allocations: 0.7363 MB / 0.5642 GB, free: 4.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.706e-05/0.5388, allocations: 34.88 kB / 0.5642 GB, free: 4.5 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.539, allocations: 58 kB / 0.5643 GB, free: 4.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001335/0.5403, allocations: 1.127 MB / 0.5654 GB, free: 4.297 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/0.5416, allocations: 1.063 MB / 0.5664 GB, free: 3.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.5417, allocations: 11.91 kB / 0.5664 GB, free: 3.922 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.391e-05/0.5417, allocations: 3.984 kB / 0.5664 GB, free: 3.918 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.5417, allocations: 23.22 kB / 0.5664 GB, free: 3.918 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003681/0.5454, allocations: 3.575 MB / 0.5699 GB, free: 1.918 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001554/0.547, allocations: 1.449 MB / 0.5713 GB, free: 1.605 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005187/0.5475, allocations: 0.5024 MB / 0.5718 GB, free: 1.504 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.03e-05/0.5476, allocations: 27.27 kB / 0.5719 GB, free: 1.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.913e-05/0.5476, allocations: 38.53 kB / 0.5719 GB, free: 1.461 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 2.735e-06/0.5477, allocations: 0 / 0.5719 GB, free: 1.461 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.001564/0.5492, allocations: 1.198 MB / 0.5731 GB, free: 0.9375 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.222e-05/0.5493, allocations: 63.91 kB / 0.5731 GB, free: 0.8633 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008263/0.5501, allocations: 0.9495 MB / 0.5741 GB, free: 124 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.669e-05/0.5501, allocations: 25.7 kB / 0.5741 GB, free: 92 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004519/0.5506, allocations: 0.7369 MB / 0.5748 GB, free: 15.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001764/0.5508, allocations: 216.9 kB / 0.575 GB, free: 15.49 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.09e-05/0.5508, allocations: 0 / 0.575 GB, free: 15.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.551, allocations: 332.9 kB / 0.5753 GB, free: 15.17 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005806/0.5516, allocations: 472.5 kB / 0.5758 GB, free: 14.83 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006219/0.5522, allocations: 0.5555 MB / 0.5763 GB, free: 14.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008829/0.5531, allocations: 0.5232 MB / 0.5768 GB, free: 13.99 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.5531, allocations: 4 kB / 0.5768 GB, free: 13.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001762/0.5549, allocations: 1.264 MB / 0.5781 GB, free: 12.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.5549, allocations: 9.438 kB / 0.5781 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.5549, allocations: 4 kB / 0.5781 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.5549, allocations: 4 kB / 0.5781 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005167/0.5555, allocations: 150.9 kB / 0.5782 GB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.5555, allocations: 7.938 kB / 0.5782 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002269/0.5557, allocations: 35.48 kB / 0.5783 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.5558, allocations: 74.3 kB / 0.5783 GB, free: 12.7 MB / 378.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001363/0.556, allocations: 116.8 kB / 0.5785 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001673/0.5577, allocations: 1.194 MB / 0.5796 GB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.5578, allocations: 142.2 kB / 0.5798 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00234/0.5602, allocations: 1.477 MB / 0.5812 GB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.5602, allocations: 11.95 kB / 0.5812 GB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.5602, allocations: 0 / 0.5812 GB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.5602, allocations: 3.984 kB / 0.5812 GB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002927/0.5631, allocations: 2.294 MB / 0.5835 GB, free: 8.492 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.5632, allocations: 4 kB / 0.5835 GB, free: 8.488 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005146/0.5637, allocations: 131.8 kB / 0.5836 GB, free: 8.363 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.5637, allocations: 4 kB / 0.5836 GB, free: 8.359 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.776e-05/0.5638, allocations: 23.73 kB / 0.5836 GB, free: 8.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.484e-06/0.5638, allocations: 7.953 kB / 0.5836 GB, free: 8.332 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.5638, allocations: 0 / 0.5836 GB, free: 8.332 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002532/0.5663, allocations: 2.055 MB / 0.5856 GB, free: 6.758 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001667/0.5665, allocations: 195 kB / 0.5858 GB, free: 6.551 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.5666, allocations: 7.984 kB / 0.5858 GB, free: 6.543 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.5668, allocations: 0 / 0.5858 GB, free: 6.543 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.635e-05/0.5669, allocations: 56.2 kB / 0.5859 GB, free: 6.488 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.044e-05/0.567, allocations: 63.73 kB / 0.5859 GB, free: 6.434 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008458/0.5679, allocations: 0.7494 MB / 0.5867 GB, free: 5.871 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5679, allocations: 0 / 0.5867 GB, free: 5.871 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005677/0.5685, allocations: 186.8 kB / 0.5868 GB, free: 5.688 MB / 378.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00223/0.5707, allocations: 2.308 MB / 0.5891 GB, free: 3.688 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.5717, allocations: 0.8912 MB / 0.59 GB, free: 2.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.5717, allocations: 3.938 kB / 0.59 GB, free: 2.977 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004587/0.5722, allocations: 474.4 kB / 0.5904 GB, free: 2.605 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004702/0.5727, allocations: 70.48 kB / 0.5905 GB, free: 2.574 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003359/0.576, allocations: 2.303 MB / 0.5927 GB, free: 456 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008799/0.5769, allocations: 1.322 MB / 0.594 GB, free: 15.13 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002074/0.5771, allocations: 64.36 kB / 0.5941 GB, free: 15.06 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004868/0.5776, allocations: 0.5629 MB / 0.5946 GB, free: 14.97 MB / 394.7 MB Notification: Performance of SimCode: time 5.21e-07/0.5776, allocations: 4 kB / 0.5946 GB, free: 14.97 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04178/0.6194, allocations: 15.77 MB / 0.61 GB, free: 15.22 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002097/0.6197, allocations: 128.5 kB / 0.6102 GB, free: 15.03 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.485/3.104, allocations: 7.562 kB / 0.6102 GB, free: 15.03 MB / 410.7 MB (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1_fmu --startTime=1900 --stopTime=2100 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)