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.001594/0.001594, allocations: 108.8 kB / 16.41 MB, free: 6.508 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.001578/0.001578, allocations: 184 kB / 17.34 MB, free: 5.738 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.412/1.412, 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.1937/0.1937, allocations: 28.78 MB / 320 MB, free: 1.918 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 67.89 kB / 445 MB, free: 2.535 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1068, allocations: 56.41 MB / 0.4897 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.005202/0.112, allocations: 3.662 MB / 0.4933 GB, free: 6.398 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001691/0.1137, allocations: 0.6779 MB / 0.4939 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003404/0.114, allocations: 19.94 kB / 0.4939 GB, free: 5.699 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004503/0.1145, allocations: 178.3 kB / 0.4941 GB, free: 5.523 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003161/0.1148, allocations: 138.8 kB / 0.4942 GB, free: 5.387 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007124/0.1155, allocations: 359.5 kB / 0.4946 GB, free: 5.035 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009042/0.1164, allocations: 0.8444 MB / 0.4954 GB, free: 4.188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007451/0.1172, allocations: 0.4919 MB / 0.4959 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003128/0.1175, allocations: 334.4 kB / 0.4962 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003707/0.1179, allocations: 425.6 kB / 0.4966 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000125/0.118, allocations: 84 kB / 0.4967 GB, free: 2.828 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002046/0.1182, allocations: 116 kB / 0.4968 GB, free: 2.715 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003812/0.1186, allocations: 438.4 kB / 0.4972 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004782/0.119, allocations: 0.6164 MB / 0.4978 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001336/0.1204, allocations: 1.266 MB / 0.4991 GB, free: 400 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1204, allocations: 0 / 0.4991 GB, free: 400 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1204, allocations: 0 / 0.4991 GB, free: 400 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.312e-05/0.1204, allocations: 4 kB / 0.4991 GB, free: 396 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.002534/0.1229, allocations: 1.837 MB / 0.5009 GB, free: 14.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.123, allocations: 8.031 kB / 0.5009 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002494/0.1232, allocations: 211.6 kB / 0.5011 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/0.1243, allocations: 0.7757 MB / 0.5018 GB, free: 13.44 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.003e-05/0.1243, allocations: 82.45 kB / 0.5019 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001468/0.1245, allocations: 104.4 kB / 0.502 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001698/0.1262, allocations: 1.158 MB / 0.5031 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/0.1262, allocations: 4.125 kB / 0.5031 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.405e-05/0.1263, allocations: 51.94 kB / 0.5032 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.549e-05/0.1263, allocations: 24 kB / 0.5032 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001571/0.1279, allocations: 1.101 MB / 0.5043 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004668/0.1325, allocations: 3.659 MB / 0.5079 GB, free: 7.09 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001743/0.1343, allocations: 1.299 MB / 0.5091 GB, free: 5.777 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005919/0.1349, allocations: 466.3 kB / 0.5096 GB, free: 5.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.65e-05/0.135, allocations: 32.69 kB / 0.5096 GB, free: 5.289 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.223e-05/0.135, allocations: 43.12 kB / 0.5096 GB, free: 5.238 MB / 398.1 MB Notification: Performance of pre-optimization done (n=68): time 2.164e-06/0.135, allocations: 0 / 0.5096 GB, free: 5.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.002065/0.1371, allocations: 1.533 MB / 0.5111 GB, free: 3.699 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.711e-05/0.1371, allocations: 59.97 kB / 0.5112 GB, free: 3.629 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001534/0.1387, allocations: 1.284 MB / 0.5124 GB, free: 2.336 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.094e-05/0.1387, allocations: 41.7 kB / 0.5125 GB, free: 2.289 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006569/0.1394, allocations: 0.7726 MB / 0.5132 GB, free: 1.508 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002138/0.1396, allocations: 245.9 kB / 0.5135 GB, free: 1.266 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001721/0.1397, allocations: 122.6 kB / 0.5136 GB, free: 1.141 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1399, allocations: 337.9 kB / 0.5139 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005905/0.1405, allocations: 437.8 kB / 0.5143 GB, free: 384 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2033/0.3438, allocations: 0.5341 MB / 0.5149 GB, free: 26.83 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001227/0.345, allocations: 0.9952 MB / 0.5158 GB, free: 26.74 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.345, allocations: 3.219 kB / 0.5158 GB, free: 26.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001331/0.3463, allocations: 1.195 MB / 0.517 GB, free: 26.69 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.3463, allocations: 8.469 kB / 0.517 GB, free: 26.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.3463, allocations: 3.188 kB / 0.517 GB, free: 26.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/0.3464, allocations: 5.062 kB / 0.517 GB, free: 26.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000477/0.3468, allocations: 136.2 kB / 0.5171 GB, free: 26.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.3469, allocations: 5.875 kB / 0.5171 GB, free: 26.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000261/0.3471, allocations: 57.97 kB / 0.5172 GB, free: 26.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.687e-05/0.3472, allocations: 27.53 kB / 0.5172 GB, free: 26.69 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.0004365/0.3476, allocations: 381.7 kB / 0.5176 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.3477, allocations: 147.9 kB / 0.5177 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001409/0.3491, allocations: 1.198 MB / 0.5189 GB, free: 26.51 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.3491, allocations: 9.656 kB / 0.5189 GB, free: 26.51 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.3491, allocations: 4.5 kB / 0.5189 GB, free: 26.51 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.3491, allocations: 2.719 kB / 0.5189 GB, free: 26.51 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002483/0.3516, allocations: 2.367 MB / 0.5212 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3516, allocations: 0 / 0.5212 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004738/0.3521, allocations: 113.6 kB / 0.5213 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.3521, allocations: 3.875 kB / 0.5213 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.261e-05/0.3521, allocations: 13.34 kB / 0.5214 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.62e-06/0.3522, allocations: 8.75 kB / 0.5214 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.3522, allocations: 0 / 0.5214 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00202/0.3542, allocations: 1.889 MB / 0.5232 GB, free: 25.97 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001708/0.3543, allocations: 210.6 kB / 0.5234 GB, free: 25.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.533e-05/0.3544, allocations: 20.17 kB / 0.5234 GB, free: 25.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002301/0.3547, allocations: 17.69 kB / 0.5234 GB, free: 25.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.612e-05/0.3547, allocations: 40.69 kB / 0.5235 GB, free: 25.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.972e-05/0.3548, allocations: 18.25 kB / 0.5235 GB, free: 25.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001057/0.3558, allocations: 0.8941 MB / 0.5244 GB, free: 25.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3558, allocations: 0 / 0.5244 GB, free: 25.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000583/0.3564, allocations: 212.5 kB / 0.5246 GB, free: 25.64 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.0001533/0.3566, allocations: 118.3 kB / 0.5247 GB, free: 25.56 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.3578, allocations: 0.968 MB / 0.5256 GB, free: 25.55 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3578, allocations: 0 / 0.5256 GB, free: 25.55 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005493/0.3583, allocations: 0.4963 MB / 0.5261 GB, free: 25.54 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005816/0.3589, allocations: 90.45 kB / 0.5262 GB, free: 25.53 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003547/0.3625, allocations: 2.809 MB / 0.529 GB, free: 24.35 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008303/0.3633, allocations: 1.305 MB / 0.5302 GB, free: 23.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002459/0.3635, allocations: 74.17 kB / 0.5303 GB, free: 23.58 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.3637, allocations: 49.7 kB / 0.5303 GB, free: 23.57 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3637, allocations: 0 / 0.5303 GB, free: 23.57 MB / 398.1 MB Notification: Performance of Templates: time 0.01424/0.3779, allocations: 5.362 MB / 0.5356 GB, free: 23.1 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 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)