Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 173.2 kB / 7.647 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.408/1.408, allocations: 221.5 MB / 229.6 MB, free: 7.578 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.000837/0.000837, allocations: 100.6 kB / 280.5 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1843/0.1843, allocations: 28.83 MB / 360.1 MB, free: 2.211 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.305e-05/1.303e-05, allocations: 8 kB / 423.8 MB, free: 32.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0972/0.09723, allocations: 57.48 MB / 481.3 MB, free: 6.84 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3842/0.4815, allocations: 80.07 MB / 0.5482 GB, free: 10.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.4818, allocations: 62.19 kB / 0.5482 GB, free: 10.95 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03038/0.5122, allocations: 14.22 MB / 0.5621 GB, free: 6.395 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.5122, allocations: 7.781 kB / 0.5621 GB, free: 6.391 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.846e-05/0.5123, allocations: 26.81 kB / 0.5621 GB, free: 6.391 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001889/0.5142, allocations: 1.374 MB / 0.5635 GB, free: 5.402 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.5143, allocations: 11.64 kB / 0.5635 GB, free: 5.398 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003162/0.5146, allocations: 200.6 kB / 0.5637 GB, free: 5.289 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009371/0.5155, allocations: 0.7605 MB / 0.5644 GB, free: 4.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.315e-05/0.5156, allocations: 38.16 kB / 0.5645 GB, free: 4.816 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.5157, allocations: 61.81 kB / 0.5645 GB, free: 4.812 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001494/0.5172, allocations: 1.165 MB / 0.5657 GB, free: 4.605 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.5186, allocations: 1.102 MB / 0.5667 GB, free: 4.223 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.5187, allocations: 0 / 0.5667 GB, free: 4.223 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.99e-05/0.5187, allocations: 3.844 kB / 0.5667 GB, free: 4.223 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.5188, allocations: 27.22 kB / 0.5668 GB, free: 4.219 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004175/0.5229, allocations: 3.658 MB / 0.5703 GB, free: 2.191 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001653/0.5246, allocations: 1.526 MB / 0.5718 GB, free: 1.852 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005213/0.5251, allocations: 0.5266 MB / 0.5724 GB, free: 1.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.966e-05/0.5252, allocations: 29.08 kB / 0.5724 GB, free: 1.734 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.732e-05/0.5253, allocations: 39.06 kB / 0.5724 GB, free: 1.688 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 1.984e-06/0.5253, allocations: 0 / 0.5724 GB, free: 1.688 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.001605/0.5269, allocations: 1.247 MB / 0.5736 GB, free: 0.6875 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.08e-05/0.5269, allocations: 59.97 kB / 0.5737 GB, free: 0.6172 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001006/0.5279, allocations: 1.002 MB / 0.5747 GB, free: 15.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.61e-05/0.528, allocations: 25.7 kB / 0.5747 GB, free: 15.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004658/0.5285, allocations: 0.757 MB / 0.5754 GB, free: 15.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001804/0.5287, allocations: 221 kB / 0.5756 GB, free: 15.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.423e-05/0.5287, allocations: 0 / 0.5756 GB, free: 15.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.5288, allocations: 333.1 kB / 0.576 GB, free: 14.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006095/0.5295, allocations: 493.7 kB / 0.5764 GB, free: 14.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006842/0.5302, allocations: 0.5871 MB / 0.577 GB, free: 14.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009469/0.5311, allocations: 0.5465 MB / 0.5775 GB, free: 13.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.5311, allocations: 0 / 0.5775 GB, free: 13.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001914/0.533, allocations: 1.322 MB / 0.5788 GB, free: 12.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.144e-05/0.5331, allocations: 13.36 kB / 0.5788 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.5331, allocations: 320 / 0.5788 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.5331, allocations: 12 kB / 0.5789 GB, free: 12.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005562/0.5337, allocations: 158.4 kB / 0.579 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.5337, allocations: 8 kB / 0.579 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002836/0.534, allocations: 35.53 kB / 0.579 GB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001317/0.5341, allocations: 74.78 kB / 0.5791 GB, free: 12.29 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 (82): * Single equations (assignments): 82 * 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.0001464/0.5343, allocations: 112.9 kB / 0.5792 GB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001739/0.5345, allocations: 138.2 kB / 0.5794 GB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002643/0.5371, allocations: 1.571 MB / 0.5809 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.5372, allocations: 11.94 kB / 0.5809 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.5372, allocations: 0 / 0.5809 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.5372, allocations: 3.984 kB / 0.5809 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003264/0.5404, allocations: 2.379 MB / 0.5832 GB, free: 8.906 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.5405, allocations: 4 kB / 0.5832 GB, free: 8.902 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005508/0.541, allocations: 138.6 kB / 0.5834 GB, free: 8.773 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.339e-05/0.5411, allocations: 8 kB / 0.5834 GB, free: 8.766 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.635e-05/0.5411, allocations: 19.94 kB / 0.5834 GB, free: 8.746 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.5411, allocations: 4 kB / 0.5834 GB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.5411, allocations: 0 / 0.5834 GB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002944/0.5441, allocations: 2.159 MB / 0.5855 GB, free: 7.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002506/0.5444, allocations: 209.9 kB / 0.5857 GB, free: 6.867 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001264/0.5445, allocations: 0 / 0.5857 GB, free: 6.867 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002534/0.5448, allocations: 7.938 kB / 0.5857 GB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.5449, allocations: 58.56 kB / 0.5858 GB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001174/0.545, allocations: 66.73 kB / 0.5858 GB, free: 6.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001226/0.5463, allocations: 0.785 MB / 0.5866 GB, free: 6.164 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5463, allocations: 0 / 0.5866 GB, free: 6.164 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00066/0.5469, allocations: 187 kB / 0.5868 GB, free: 5.98 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 (67): * Single equations (assignments): 67 * 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.0002431/0.5472, allocations: 107.1 kB / 0.5869 GB, free: 5.867 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001317/0.5485, allocations: 0.9389 MB / 0.5878 GB, free: 5.117 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5485, allocations: 4.125 kB / 0.5878 GB, free: 5.113 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004914/0.549, allocations: 492.1 kB / 0.5883 GB, free: 4.727 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000475/0.5495, allocations: 62.52 kB / 0.5883 GB, free: 4.699 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0035/0.553, allocations: 2.104 MB / 0.5904 GB, free: 2.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/0.5541, allocations: 1.336 MB / 0.5917 GB, free: 1.441 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002448/0.5544, allocations: 68.36 kB / 0.5918 GB, free: 1.375 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.5545, allocations: 46.81 kB / 0.5918 GB, free: 1.332 MB / 378.7 MB Notification: Performance of SimCode: time 8.31e-07/0.5545, allocations: 0 / 0.5918 GB, free: 1.332 MB / 378.7 MB Notification: Performance of Templates: time 0.01085/0.5653, allocations: 4.324 MB / 0.596 GB, free: 13.05 MB / 394.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)