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.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.001963/0.001963, allocations: 78.95 kB / 19.76 MB, free: 1.898 MB / 14.72 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.002333/0.002333, allocations: 160.7 kB / 23.01 MB, free: 4.574 MB / 14.72 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.432/1.432, allocations: 177.2 MB / 203.4 MB, free: 9.25 MB / 190.1 MB " [Timeout remaining time 178] 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.1793/0.1793, allocations: 21.8 MB / 281.6 MB, free: 10.93 MB / 270.1 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_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") [Timeout 660] "Notification: SystemDynamics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00241/0.00241, allocations: 63.91 kB / 418.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3169/0.3193, allocations: 60.77 MB / 479.5 MB, free: 13 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.005073/0.3244, allocations: 3.08 MB / 482.6 MB, free: 10.69 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002027/0.3264, allocations: 0.6698 MB / 483.3 MB, free: 10.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007447/0.3272, allocations: 23.41 kB / 483.3 MB, free: 10.12 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005953/0.3278, allocations: 176.1 kB / 483.5 MB, free: 9.973 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005771/0.3283, allocations: 130.8 kB / 483.6 MB, free: 9.879 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000825/0.3292, allocations: 361.1 kB / 483.9 MB, free: 9.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009619/0.3301, allocations: 0.8394 MB / 484.8 MB, free: 9.066 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007235/0.3308, allocations: 467 kB / 485.2 MB, free: 8.715 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005604/0.3314, allocations: 0.5227 MB / 485.8 MB, free: 8.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003848/0.3318, allocations: 377.6 kB / 486.1 MB, free: 8.039 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001365/0.3319, allocations: 89.31 kB / 486.2 MB, free: 8.035 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000223/0.3322, allocations: 110.3 kB / 486.3 MB, free: 7.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004122/0.3326, allocations: 450.3 kB / 486.8 MB, free: 7.488 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003888/0.333, allocations: 460.4 kB / 487.2 MB, free: 7.035 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001318/0.3343, allocations: 1.286 MB / 488.5 MB, free: 5.742 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.3343, allocations: 0 / 488.5 MB, free: 5.742 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3343, allocations: 0 / 488.5 MB, free: 5.742 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.445e-05/0.3343, allocations: 0 / 488.5 MB, free: 5.742 MB / 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.002403/0.3367, allocations: 1.762 MB / 490.3 MB, free: 3.934 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.3367, allocations: 8.031 kB / 490.3 MB, free: 3.926 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002494/0.337, allocations: 207.6 kB / 490.5 MB, free: 3.723 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/0.338, allocations: 0.7154 MB / 491.2 MB, free: 2.973 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.731e-05/0.3381, allocations: 82.45 kB / 491.3 MB, free: 2.891 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001281/0.3382, allocations: 100.4 kB / 491.4 MB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001768/0.34, allocations: 1.166 MB / 492.5 MB, free: 1.562 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/0.34, allocations: 192 / 492.5 MB, free: 1.562 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.467e-05/0.3401, allocations: 47.88 kB / 492.6 MB, free: 1.516 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.785e-05/0.3401, allocations: 31.94 kB / 492.6 MB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00164/0.3417, allocations: 1.101 MB / 493.7 MB, free: 392 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004549/0.3463, allocations: 3.258 MB / 497 MB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001743/0.348, allocations: 1.3 MB / 498.3 MB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000604/0.3486, allocations: 470.6 kB / 498.7 MB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.262e-05/0.3487, allocations: 24.64 kB / 498.8 MB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.3488, allocations: 43.16 kB / 498.8 MB, free: 11.19 MB / 398.1 MB Notification: Performance of pre-optimization done (n=68): time 3.036e-06/0.3488, allocations: 0 / 498.8 MB, free: 11.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.002082/0.3508, allocations: 1.532 MB / 0.4886 GB, free: 9.652 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.3509, allocations: 60.06 kB / 0.4887 GB, free: 9.582 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/0.3524, allocations: 1.271 MB / 0.4899 GB, free: 8.301 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.498e-05/0.3525, allocations: 37.7 kB / 0.4899 GB, free: 8.258 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006588/0.3531, allocations: 0.7649 MB / 0.4907 GB, free: 7.484 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002118/0.3533, allocations: 241.9 kB / 0.4909 GB, free: 7.246 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001851/0.3535, allocations: 122.7 kB / 0.491 GB, free: 7.121 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.3537, allocations: 329.9 kB / 0.4913 GB, free: 6.793 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006241/0.3543, allocations: 441.8 kB / 0.4918 GB, free: 6.359 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007226/0.355, allocations: 0.5311 MB / 0.4923 GB, free: 5.793 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.3564, allocations: 1.002 MB / 0.4933 GB, free: 4.754 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.3564, allocations: 4 kB / 0.4933 GB, free: 4.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001678/0.3581, allocations: 1.195 MB / 0.4944 GB, free: 3.547 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.3581, allocations: 4 kB / 0.4944 GB, free: 3.543 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.3581, allocations: 4 kB / 0.4944 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.261e-05/0.3581, allocations: 4 kB / 0.4944 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005018/0.3586, allocations: 131.8 kB / 0.4946 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.3586, allocations: 8 kB / 0.4946 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002794/0.3589, allocations: 59.5 kB / 0.4946 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.485e-05/0.359, allocations: 23.98 kB / 0.4947 GB, free: 3.316 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.0005129/0.3595, allocations: 379.9 kB / 0.495 GB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001711/0.3597, allocations: 147 kB / 0.4952 GB, free: 2.793 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00174/0.3614, allocations: 1.203 MB / 0.4963 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.3614, allocations: 8 kB / 0.4963 GB, free: 1.57 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.3614, allocations: 3.938 kB / 0.4964 GB, free: 1.566 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.3614, allocations: 3.984 kB / 0.4964 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002969/0.3644, allocations: 2.144 MB / 0.4984 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3644, allocations: 0 / 0.4984 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004995/0.3649, allocations: 127.8 kB / 0.4986 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.3649, allocations: 0 / 0.4986 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.836e-05/0.3649, allocations: 16 kB / 0.4986 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.3649, allocations: 0 / 0.4986 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3649, allocations: 0 / 0.4986 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002405/0.3673, allocations: 1.89 MB / 0.5004 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001985/0.3675, allocations: 134.9 kB / 0.5006 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.626e-05/0.3676, allocations: 16.06 kB / 0.5006 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/0.3678, allocations: 16 kB / 0.5006 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.3679, allocations: 48.5 kB / 0.5006 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.735e-05/0.368, allocations: 20 kB / 0.5007 GB, free: 13.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001148/0.3691, allocations: 0.8762 MB / 0.5015 GB, free: 12.21 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3691, allocations: 0 / 0.5015 GB, free: 12.21 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006223/0.3698, allocations: 215.1 kB / 0.5017 GB, free: 12 MB / 414.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.0002131/0.37, allocations: 111.2 kB / 0.5018 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001425/0.3714, allocations: 0.9741 MB / 0.5028 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3714, allocations: 0 / 0.5028 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006506/0.372, allocations: 499.5 kB / 0.5033 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005943/0.3726, allocations: 89.27 kB / 0.5033 GB, free: 10.34 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004103/0.3767, allocations: 2.79 MB / 0.5061 GB, free: 7.516 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009327/0.3777, allocations: 0.7171 MB / 0.5068 GB, free: 6.766 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002762/0.378, allocations: 76.36 kB / 0.5068 GB, free: 6.691 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000132/0.3781, allocations: 40.5 kB / 0.5069 GB, free: 6.652 MB / 414.1 MB Notification: Performance of SimCode: time 1.563e-06/0.3781, allocations: 0 / 0.5069 GB, free: 6.652 MB / 414.1 MB Notification: Performance of Templates: time 0.01324/0.3913, allocations: 4.353 MB / 0.5111 GB, free: 2.328 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile [Timeout 660] (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 gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.8402589140459895] Failed to read output from testmodel.py, exit status != 0: 0.40035229292698205 0.41485718600000004 0.077463934 Calling exit ...