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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 81.95 kB / 19.87 MB, free: 4.617 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 169.7 kB / 23.27 MB, free: 1.223 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.069/1.069, allocations: 177.1 MB / 203.7 MB, free: 5.523 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo): time 0.1295/0.1295, allocations: 21.81 MB / 282.1 MB, free: 7.043 MB / 266.7 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.026e-06/3.026e-06, allocations: 0 / 359.3 MB, free: 4.766 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.349e-05/2.652e-05, allocations: 5.266 kB / 359.3 MB, free: 4.762 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.003704/0.00373, allocations: 3.122 MB / 362.4 MB, free: 1.625 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001492/0.005223, allocations: 0.6701 MB / 363.1 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004439/0.005667, allocations: 19.88 kB / 363.1 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000352/0.006019, allocations: 178.3 kB / 363.2 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002882/0.006307, allocations: 138.8 kB / 363.4 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005884/0.006895, allocations: 363.5 kB / 363.7 MB, free: 272 kB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006108/0.007506, allocations: 0.8404 MB / 364.6 MB, free: 15.42 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004933/0.007999, allocations: 472.1 kB / 365 MB, free: 14.93 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003196/0.008319, allocations: 498.8 kB / 365.5 MB, free: 14.44 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000207/0.008526, allocations: 294.7 kB / 365.8 MB, free: 14.15 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.267e-05/0.008619, allocations: 88 kB / 365.9 MB, free: 14.06 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001543/0.008773, allocations: 108 kB / 366 MB, free: 13.96 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002607/0.009034, allocations: 454.4 kB / 366.4 MB, free: 13.51 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001862/0.00922, allocations: 330.6 kB / 366.8 MB, free: 13.19 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00072/0.00994, allocations: 0.9057 MB / 367.7 MB, free: 12.28 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.009942, allocations: 0 / 367.7 MB, free: 12.28 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.009943, allocations: 0 / 367.7 MB, free: 12.28 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.591e-05/0.009959, allocations: 3.938 kB / 367.7 MB, free: 12.27 MB / 346.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.001434/0.01139, allocations: 1.898 MB / 369.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.01143, allocations: 12.03 kB / 369.6 MB, free: 10.31 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002018/0.01163, allocations: 291.6 kB / 369.9 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005276/0.01216, allocations: 0.7136 MB / 370.6 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.867e-05/0.01221, allocations: 74.44 kB / 370.7 MB, free: 9.199 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.762e-05/0.01229, allocations: 104.4 kB / 370.8 MB, free: 9.098 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006447/0.01293, allocations: 0.7125 MB / 371.5 MB, free: 8.305 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.01295, allocations: 8.125 kB / 371.5 MB, free: 8.297 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.905e-05/0.01299, allocations: 40.38 kB / 371.5 MB, free: 8.258 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.01301, allocations: 28.38 kB / 371.6 MB, free: 8.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002978/0.01331, allocations: 289.5 kB / 371.8 MB, free: 7.949 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002329/0.01563, allocations: 3.089 MB / 374.9 MB, free: 4.766 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004398/0.01607, allocations: 333.9 kB / 375.2 MB, free: 4.43 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.01618, allocations: 109.6 kB / 375.4 MB, free: 4.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.381e-05/0.01626, allocations: 40.52 kB / 375.4 MB, free: 4.281 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.01629, allocations: 45.98 kB / 375.4 MB, free: 4.227 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 2.454e-06/0.01629, allocations: 0 / 375.4 MB, free: 4.227 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.0005759/0.01686, allocations: 0.5126 MB / 376 MB, free: 3.707 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/0.0169, allocations: 60.06 kB / 376 MB, free: 3.637 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007637/0.01766, allocations: 1.161 MB / 377.2 MB, free: 2.449 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.701e-05/0.01769, allocations: 37.7 kB / 377.2 MB, free: 2.406 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004648/0.01816, allocations: 0.8662 MB / 378.1 MB, free: 1.527 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.01827, allocations: 241.8 kB / 378.3 MB, free: 1.289 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.01838, allocations: 123.9 kB / 378.4 MB, free: 1.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002242/0.01861, allocations: 0.5004 MB / 378.9 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.015e-05/0.0187, allocations: 65.25 kB / 379 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001545/0.01885, allocations: 203.6 kB / 379.2 MB, free: 348 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002826/0.01913, allocations: 333.5 kB / 379.5 MB, free: 15.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.01914, allocations: 0 / 379.5 MB, free: 15.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0004959/0.01963, allocations: 0.5079 MB / 380 MB, free: 15.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.01965, allocations: 7.938 kB / 380 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.01966, allocations: 4 kB / 380 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.01968, allocations: 4 kB / 380 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003438/0.02002, allocations: 139.8 kB / 380.2 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/0.02003, allocations: 4 kB / 380.2 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/0.0202, allocations: 51.62 kB / 380.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.793e-05/0.02023, allocations: 16 kB / 380.3 MB, free: 15.23 MB / 362.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 (Population.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Pollution.Integrator1.local_reset,CIAF.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002174/0.02044, allocations: 199.5 kB / 380.4 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/0.02059, allocations: 171 kB / 380.6 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000629/0.02122, allocations: 0.4884 MB / 381.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.02123, allocations: 7.984 kB / 381.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.02123, allocations: 0 / 381.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.02124, allocations: 4 kB / 381.1 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001249/0.02249, allocations: 1.069 MB / 382.2 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.02249, allocations: 4 kB / 382.2 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003178/0.02281, allocations: 103.9 kB / 382.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.275e-06/0.02282, allocations: 7.938 kB / 382.3 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.856e-05/0.02285, allocations: 16 kB / 382.3 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.02285, allocations: 4 kB / 382.3 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.02285, allocations: 3.984 kB / 382.3 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007857/0.02364, allocations: 0.7092 MB / 383 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001244/0.02376, allocations: 126.8 kB / 383.2 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.263e-05/0.02383, allocations: 15.94 kB / 383.2 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.02397, allocations: 16 kB / 383.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.174e-05/0.02405, allocations: 44.56 kB / 383.2 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.526e-05/0.02407, allocations: 15.98 kB / 383.2 MB, free: 12.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006087/0.02468, allocations: 0.6419 MB / 383.9 MB, free: 11.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.02468, allocations: 4 kB / 383.9 MB, free: 11.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000532/0.02521, allocations: 215.2 kB / 384.1 MB, free: 11.3 MB / 362.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 () * Number of clocked 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 (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.0001999/0.02541, allocations: 115.1 kB / 384.2 MB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004162/0.02583, allocations: 294.4 kB / 384.5 MB, free: 10.89 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.02583, allocations: 0 / 384.5 MB, free: 10.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001972/0.02603, allocations: 177.2 kB / 384.7 MB, free: 10.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005082/0.02654, allocations: 90.67 kB / 384.8 MB, free: 10.63 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.02912, allocations: 2.252 MB / 387 MB, free: 8.324 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.02941, allocations: 329.2 kB / 387.3 MB, free: 7.98 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001777/0.02959, allocations: 72.42 kB / 387.4 MB, free: 7.906 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001869/0.02978, allocations: 142.2 kB / 387.5 MB, free: 7.766 MB / 362.7 MB Notification: Performance of SimCode: time 8.32e-07/0.02978, allocations: 4 kB / 387.5 MB, free: 7.762 MB / 362.7 MB Notification: Performance of Templates: time 0.01139/0.04117, allocations: 4.767 MB / 392.3 MB, free: 3.039 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile [Timeout 660] (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=240 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.1804436380043626]