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.0007435/0.0007435, allocations: 79.69 kB / 20.02 MB, free: 4.492 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.0007973/0.0007973, allocations: 166 kB / 23.32 MB, free: 1.191 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 0.8983/0.8983, allocations: 177.1 MB / 203.6 MB, free: 5.727 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.1322/0.1322, allocations: 21.8 MB / 281.9 MB, free: 7.355 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 4.007e-06/4.007e-06, allocations: 0 / 419.2 MB, free: 8.801 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.555e-05/3.955e-05, allocations: 2.281 kB / 419.2 MB, free: 8.797 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.003621/0.00366, allocations: 3.079 MB / 422.3 MB, free: 5.707 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001483/0.005144, allocations: 0.6739 MB / 423 MB, free: 5.031 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004054/0.005549, allocations: 15.94 kB / 423 MB, free: 5.016 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003781/0.005927, allocations: 170.3 kB / 423.2 MB, free: 4.848 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000278/0.006205, allocations: 138.8 kB / 423.3 MB, free: 4.711 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006633/0.006869, allocations: 359.5 kB / 423.7 MB, free: 4.359 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006498/0.007518, allocations: 0.8482 MB / 424.5 MB, free: 3.508 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000531/0.008049, allocations: 480.1 kB / 425 MB, free: 3.004 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003453/0.008395, allocations: 490.8 kB / 425.5 MB, free: 2.523 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.008617, allocations: 290.8 kB / 425.7 MB, free: 2.238 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 8.956e-05/0.008707, allocations: 84 kB / 425.8 MB, free: 2.156 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001793/0.008886, allocations: 119.9 kB / 425.9 MB, free: 2.039 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005603/0.009446, allocations: 454.3 kB / 426.4 MB, free: 1.594 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001833/0.00963, allocations: 326.6 kB / 426.7 MB, free: 1.273 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009152/0.01054, allocations: 1.222 MB / 427.9 MB, free: 48 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.01055, allocations: 0 / 427.9 MB, free: 48 kB / 394.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.01055, allocations: 0 / 427.9 MB, free: 48 kB / 394.7 MB Notification: Performance of Transformations before backend: time 1.789e-05/0.01057, allocations: 0 / 427.9 MB, free: 48 kB / 394.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.001474/0.01204, allocations: 1.734 MB / 429.7 MB, free: 14.27 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.01208, allocations: 12.03 kB / 429.7 MB, free: 14.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.01224, allocations: 211.6 kB / 429.9 MB, free: 14.05 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006857/0.01293, allocations: 0.7108 MB / 430.6 MB, free: 13.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.57e-05/0.01298, allocations: 74.44 kB / 430.7 MB, free: 13.23 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-05/0.01306, allocations: 104.4 kB / 430.8 MB, free: 13.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.01414, allocations: 1.158 MB / 431.9 MB, free: 11.9 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.01416, allocations: 8.188 kB / 431.9 MB, free: 11.89 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.345e-05/0.0142, allocations: 40.38 kB / 432 MB, free: 11.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.01422, allocations: 32.25 kB / 432 MB, free: 11.82 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.01523, allocations: 1.093 MB / 433.1 MB, free: 10.73 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003454/0.01868, allocations: 3.24 MB / 436.3 MB, free: 7.406 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/0.01982, allocations: 1.305 MB / 437.6 MB, free: 6.086 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003658/0.02019, allocations: 458.6 kB / 438.1 MB, free: 5.637 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.421e-05/0.02025, allocations: 28.58 kB / 438.1 MB, free: 5.609 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.02028, allocations: 43.16 kB / 438.2 MB, free: 5.559 MB / 410.7 MB Notification: Performance of pre-optimization done (n=67): time 2.785e-06/0.02028, allocations: 0 / 438.2 MB, free: 5.559 MB / 410.7 MB Notification: Performance of matching and sorting (n=67): time 0.001302/0.02158, allocations: 1.52 MB / 439.7 MB, free: 4.031 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/0.02162, allocations: 64.06 kB / 439.7 MB, free: 3.957 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00128/0.0229, allocations: 1.264 MB / 441 MB, free: 2.684 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.764e-05/0.02293, allocations: 37.7 kB / 441 MB, free: 2.641 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003933/0.02332, allocations: 0.7805 MB / 441.8 MB, free: 1.852 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.02343, allocations: 233.9 kB / 442 MB, free: 1.621 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.02355, allocations: 118.3 kB / 442.2 MB, free: 1.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.02365, allocations: 334 kB / 442.5 MB, free: 1.168 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003529/0.024, allocations: 433.1 kB / 442.9 MB, free: 0.7422 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004133/0.02441, allocations: 0.5316 MB / 443.4 MB, free: 180 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1984/0.2228, allocations: 0.9901 MB / 444.4 MB, free: 63.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.2228, allocations: 2.25 kB / 444.4 MB, free: 63.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0009926/0.2238, allocations: 1.183 MB / 445.6 MB, free: 63.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.2239, allocations: 6.688 kB / 445.6 MB, free: 63.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.2239, allocations: 3.406 kB / 445.6 MB, free: 63.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.321e-05/0.2239, allocations: 10.69 kB / 445.6 MB, free: 63.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002664/0.2242, allocations: 134.1 kB / 445.8 MB, free: 63.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.417e-06/0.2242, allocations: 8.812 kB / 445.8 MB, free: 63.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000154/0.2243, allocations: 52.81 kB / 445.8 MB, free: 63.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.326e-05/0.2243, allocations: 23.12 kB / 445.9 MB, free: 63.88 MB / 410.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 () * 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.0003795/0.2247, allocations: 376.6 kB / 446.2 MB, free: 63.76 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.061e-05/0.2248, allocations: 145.5 kB / 446.4 MB, free: 63.76 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009131/0.2257, allocations: 1.192 MB / 447.6 MB, free: 63.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.2257, allocations: 8.562 kB / 447.6 MB, free: 63.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.2257, allocations: 1.031 kB / 447.6 MB, free: 63.43 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.2257, allocations: 6.641 kB / 447.6 MB, free: 63.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001543/0.2273, allocations: 2.136 MB / 449.7 MB, free: 62.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.2273, allocations: 0 / 449.7 MB, free: 62.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000259/0.2275, allocations: 115 kB / 449.8 MB, free: 62.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.2275, allocations: 5.469 kB / 449.8 MB, free: 62.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.223e-05/0.2276, allocations: 14.45 kB / 449.8 MB, free: 62.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.2276, allocations: 4.719 kB / 449.8 MB, free: 62.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2276, allocations: 0 / 449.8 MB, free: 62.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/0.2288, allocations: 1.88 MB / 451.7 MB, free: 62.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.308e-05/0.2289, allocations: 132.9 kB / 451.9 MB, free: 62.02 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.892e-05/0.2289, allocations: 11.16 kB / 451.9 MB, free: 62.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.229, allocations: 16.8 kB / 451.9 MB, free: 62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.183e-05/0.2291, allocations: 41.16 kB / 451.9 MB, free: 62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.909e-05/0.2291, allocations: 26.17 kB / 451.9 MB, free: 61.99 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006106/0.2297, allocations: 0.8802 MB / 452.8 MB, free: 61.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2297, allocations: 0 / 452.8 MB, free: 61.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004846/0.2302, allocations: 209.8 kB / 453 MB, free: 61.63 MB / 410.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.0002204/0.2304, allocations: 112 kB / 453.1 MB, free: 61.54 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009193/0.2314, allocations: 0.9728 MB / 454.1 MB, free: 61.32 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.2314, allocations: 0 / 454.1 MB, free: 61.32 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003894/0.2318, allocations: 499 kB / 454.6 MB, free: 61.22 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004414/0.2322, allocations: 84.2 kB / 454.7 MB, free: 61.17 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.2347, allocations: 2.752 MB / 457.4 MB, free: 59.91 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005041/0.2352, allocations: 0.715 MB / 458.2 MB, free: 59.75 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001816/0.2354, allocations: 72.19 kB / 458.2 MB, free: 59.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.34e-05/0.2355, allocations: 49.62 kB / 458.3 MB, free: 59.73 MB / 410.7 MB Notification: Performance of SimCode: time 1.944e-06/0.2355, allocations: 0 / 458.3 MB, free: 59.73 MB / 410.7 MB Notification: Performance of Templates: time 0.009095/0.2446, allocations: 4.218 MB / 462.5 MB, free: 59.07 MB / 410.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=480 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 3.2306550573557615] Failed to read output from testmodel.py, exit status != 0: 0.25264916848391294 0.26366089499999995 0.25121968599999994 Calling exit ...