Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 108.3 kB / 16.41 MB, free: 6.492 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.00149/0.00149, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.319/1.319, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1782/0.1782, allocations: 28.78 MB / 320 MB, free: 1.918 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 60.14 kB / 445 MB, free: 2.551 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1085, allocations: 56.42 MB / 0.4897 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.004644/0.1132, allocations: 3.634 MB / 0.4932 GB, free: 6.426 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001895/0.1151, allocations: 0.6818 MB / 0.4939 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007799/0.1159, allocations: 19.94 kB / 0.4939 GB, free: 5.723 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006395/0.1166, allocations: 178.3 kB / 0.4941 GB, free: 5.547 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004641/0.1171, allocations: 134.8 kB / 0.4942 GB, free: 5.414 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007721/0.1179, allocations: 359.5 kB / 0.4946 GB, free: 5.062 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008019/0.1187, allocations: 0.86 MB / 0.4954 GB, free: 4.199 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007434/0.1194, allocations: 0.6364 MB / 0.496 GB, free: 3.523 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002541/0.1197, allocations: 334.4 kB / 0.4963 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002971/0.12, allocations: 421.6 kB / 0.4967 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001241/0.1201, allocations: 84 kB / 0.4968 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001851/0.1203, allocations: 112 kB / 0.4969 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003044/0.1206, allocations: 434.5 kB / 0.4973 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000381/0.121, allocations: 0.6164 MB / 0.4979 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001022/0.122, allocations: 1.252 MB / 0.4992 GB, free: 292 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1221, allocations: 0 / 0.4992 GB, free: 292 kB / 382.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.1221, allocations: 4 kB / 0.4992 GB, free: 288 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.1221, allocations: 0 / 0.4992 GB, free: 288 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001969/0.1241, allocations: 1.772 MB / 0.5009 GB, free: 14.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.1241, allocations: 16.03 kB / 0.5009 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002155/0.1243, allocations: 198.4 kB / 0.5011 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008803/0.1252, allocations: 0.7588 MB / 0.5018 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.786e-05/0.1253, allocations: 74.45 kB / 0.5019 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.1255, allocations: 104.4 kB / 0.502 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.127, allocations: 1.166 MB / 0.5031 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.35e-05/0.127, allocations: 4.125 kB / 0.5032 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.273e-05/0.1271, allocations: 51.94 kB / 0.5032 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.181e-05/0.1271, allocations: 28 kB / 0.5032 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001307/0.1284, allocations: 1.097 MB / 0.5043 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003754/0.1322, allocations: 3.654 MB / 0.5079 GB, free: 7.078 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001413/0.1336, allocations: 1.334 MB / 0.5092 GB, free: 5.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004953/0.1341, allocations: 486.3 kB / 0.5096 GB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.187e-05/0.1342, allocations: 24.77 kB / 0.5097 GB, free: 5.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.637e-05/0.1342, allocations: 47.06 kB / 0.5097 GB, free: 5.176 MB / 398.1 MB Notification: Performance of pre-optimization done (n=68): time 2.415e-06/0.1343, allocations: 0 / 0.5097 GB, free: 5.176 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.001724/0.136, allocations: 1.524 MB / 0.5112 GB, free: 3.645 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.136, allocations: 59.97 kB / 0.5112 GB, free: 3.574 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/0.1373, allocations: 1.288 MB / 0.5125 GB, free: 2.277 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.561e-05/0.1373, allocations: 37.7 kB / 0.5125 GB, free: 2.234 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005049/0.1379, allocations: 0.7637 MB / 0.5133 GB, free: 1.461 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001592/0.138, allocations: 228.7 kB / 0.5135 GB, free: 1.234 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.1382, allocations: 118.6 kB / 0.5136 GB, free: 1.113 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.1383, allocations: 341.9 kB / 0.5139 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004744/0.1388, allocations: 441.8 kB / 0.5144 GB, free: 348 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2374/0.3761, allocations: 0.5291 MB / 0.5149 GB, free: 26.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001412/0.3776, allocations: 1 MB / 0.5159 GB, free: 26.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/0.3776, allocations: 0 / 0.5159 GB, free: 26.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001395/0.379, allocations: 1.188 MB / 0.517 GB, free: 26.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.3791, allocations: 10.59 kB / 0.517 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.3791, allocations: 4.188 kB / 0.517 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/0.3791, allocations: 5.031 kB / 0.517 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004379/0.3795, allocations: 129.6 kB / 0.5172 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.522e-05/0.3796, allocations: 6.75 kB / 0.5172 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003043/0.3799, allocations: 60.94 kB / 0.5172 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.982e-05/0.3799, allocations: 23 kB / 0.5172 GB, free: 26.7 MB / 398.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.000483/0.3804, allocations: 382.7 kB / 0.5176 GB, free: 26.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001663/0.3806, allocations: 139 kB / 0.5177 GB, free: 26.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001474/0.3821, allocations: 1.203 MB / 0.5189 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.3821, allocations: 9.312 kB / 0.5189 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3821, allocations: 3.094 kB / 0.5189 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/0.3821, allocations: 6.438 kB / 0.5189 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002785/0.3849, allocations: 2.365 MB / 0.5212 GB, free: 26.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.3849, allocations: 2.812 kB / 0.5213 GB, free: 26.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004299/0.3853, allocations: 112.2 kB / 0.5214 GB, free: 26.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.331e-06/0.3854, allocations: 6.344 kB / 0.5214 GB, free: 26.2 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.341e-05/0.3854, allocations: 18.52 kB / 0.5214 GB, free: 26.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.173e-06/0.3854, allocations: 7.953 kB / 0.5214 GB, free: 26.2 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3854, allocations: 0 / 0.5214 GB, free: 26.2 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00201/0.3874, allocations: 1.881 MB / 0.5232 GB, free: 26 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001398/0.3876, allocations: 201.8 kB / 0.5234 GB, free: 25.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.571e-05/0.3877, allocations: 13.91 kB / 0.5234 GB, free: 25.83 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.3879, allocations: 22.45 kB / 0.5235 GB, free: 25.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.848e-05/0.388, allocations: 39.08 kB / 0.5235 GB, free: 25.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.027e-05/0.388, allocations: 17.77 kB / 0.5235 GB, free: 25.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001076/0.3891, allocations: 0.8929 MB / 0.5244 GB, free: 25.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3891, allocations: 0 / 0.5244 GB, free: 25.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005623/0.3897, allocations: 207.1 kB / 0.5246 GB, free: 25.68 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 68 * 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 Backend phase and start with SimCode phase: time 0.0001571/0.3898, allocations: 123.5 kB / 0.5247 GB, free: 25.6 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001331/0.3912, allocations: 0.998 MB / 0.5257 GB, free: 25.58 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3912, allocations: 7.578 kB / 0.5257 GB, free: 25.58 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006356/0.3918, allocations: 0.5102 MB / 0.5262 GB, free: 25.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005818/0.3924, allocations: 92.47 kB / 0.5263 GB, free: 25.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003638/0.3961, allocations: 2.839 MB / 0.529 GB, free: 24.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008244/0.3969, allocations: 1.308 MB / 0.5303 GB, free: 23.6 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.3971, allocations: 59.23 kB / 0.5304 GB, free: 23.59 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3971, allocations: 1.5 kB / 0.5304 GB, free: 23.59 MB / 398.1 MB Notification: Performance of Templates: time 0.01642/0.4135, allocations: 11.08 MB / 0.5412 GB, free: 19.91 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)