Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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.00139/0.00139, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001683/0.001683, allocations: 211.6 kB / 22.24 MB, free: 4.855 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.4/1.4, allocations: 230.6 MB / 256 MB, free: 8.062 MB / 206.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.188/0.188, allocations: 29.23 MB / 341.6 MB, free: 5.656 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_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") [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.001996/0.001996, allocations: 59.91 kB / 478.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3274, allocations: 60.8 MB / 0.527 GB, free: 8.133 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.003738/0.3312, allocations: 2.746 MB / 0.5297 GB, free: 6.293 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.3323, allocations: 0.5338 MB / 0.5302 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002667/0.3325, allocations: 11.28 kB / 0.5302 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002915/0.3328, allocations: 148.6 kB / 0.5304 GB, free: 5.816 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002809/0.3331, allocations: 122.6 kB / 0.5305 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005811/0.3337, allocations: 286.5 kB / 0.5308 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006169/0.3343, allocations: 0.7271 MB / 0.5315 GB, free: 5.281 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004893/0.3348, allocations: 351 kB / 0.5318 GB, free: 5.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002318/0.335, allocations: 308.6 kB / 0.5321 GB, free: 4.906 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002965/0.3353, allocations: 352 kB / 0.5324 GB, free: 4.719 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.3355, allocations: 75.56 kB / 0.5325 GB, free: 4.719 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002315/0.3357, allocations: 109.4 kB / 0.5326 GB, free: 4.707 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000417/0.3361, allocations: 440.4 kB / 0.533 GB, free: 4.508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002861/0.3364, allocations: 445.6 kB / 0.5334 GB, free: 4.203 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001059/0.3375, allocations: 1.168 MB / 0.5346 GB, free: 3.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3375, allocations: 0 / 0.5346 GB, free: 3.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3375, allocations: 0 / 0.5346 GB, free: 3.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.629e-05/0.3375, allocations: 0.7969 kB / 0.5346 GB, free: 3.594 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.001756/0.3392, allocations: 1.697 MB / 0.5362 GB, free: 2.305 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.3393, allocations: 9.031 kB / 0.5363 GB, free: 2.305 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000194/0.3395, allocations: 202.5 kB / 0.5364 GB, free: 2.191 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004161/0.3399, allocations: 0.522 MB / 0.537 GB, free: 1.746 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.679e-05/0.34, allocations: 71.91 kB / 0.537 GB, free: 1.715 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.3401, allocations: 104.1 kB / 0.5371 GB, free: 1.676 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.3415, allocations: 1.078 MB / 0.5382 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.69e-05/0.3415, allocations: 192 / 0.5382 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.304e-05/0.3415, allocations: 40.06 kB / 0.5382 GB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.655e-05/0.3416, allocations: 57.09 kB / 0.5383 GB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001633/0.3432, allocations: 1.212 MB / 0.5395 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003847/0.3471, allocations: 2.47 MB / 0.5419 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001375/0.3485, allocations: 0.9682 MB / 0.5428 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006564/0.3491, allocations: 494.1 kB / 0.5433 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.416e-05/0.3492, allocations: 28.52 kB / 0.5433 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.3492, allocations: 46.42 kB / 0.5434 GB, free: 14.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.334e-06/0.3492, allocations: 0 / 0.5434 GB, free: 14.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.00235/0.3516, allocations: 1.595 MB / 0.5449 GB, free: 14.06 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/0.3516, allocations: 59.75 kB / 0.545 GB, free: 14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001482/0.3531, allocations: 1.244 MB / 0.5462 GB, free: 13.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.859e-05/0.3532, allocations: 41.64 kB / 0.5462 GB, free: 13.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005942/0.3538, allocations: 0.7794 MB / 0.547 GB, free: 12.46 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001892/0.3539, allocations: 241.9 kB / 0.5472 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/0.3541, allocations: 134.6 kB / 0.5473 GB, free: 12.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.3543, allocations: 334 kB / 0.5477 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006689/0.3549, allocations: 477.7 kB / 0.5481 GB, free: 11.29 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007975/0.3557, allocations: 0.6521 MB / 0.5488 GB, free: 10.56 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004075/0.3598, allocations: 2.129 MB / 0.5508 GB, free: 8.352 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.3598, allocations: 4 kB / 0.5508 GB, free: 8.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001876/0.3617, allocations: 1.339 MB / 0.5521 GB, free: 7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.3617, allocations: 8 kB / 0.5522 GB, free: 6.992 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.3617, allocations: 4 kB / 0.5522 GB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.446e-05/0.3617, allocations: 16.69 kB / 0.5522 GB, free: 6.973 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005694/0.3623, allocations: 183.7 kB / 0.5524 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.979e-05/0.3623, allocations: 15.92 kB / 0.5524 GB, free: 6.777 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004035/0.3627, allocations: 79.5 kB / 0.5524 GB, free: 6.699 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.568e-05/0.3628, allocations: 36 kB / 0.5525 GB, free: 6.664 MB / 398.1 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) \"Time in calendar years\" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) \"Reversible state variable\" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) \"Reversible state variable\" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) \"Reversible state variable\" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) \"Reversible state variable\" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) \"Reversible state variable\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0007759/0.3636, allocations: 391.4 kB / 0.5528 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001646/0.3637, allocations: 139.1 kB / 0.553 GB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001859/0.3656, allocations: 1.253 MB / 0.5542 GB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.628e-05/0.3656, allocations: 8 kB / 0.5542 GB, free: 4.867 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3656, allocations: 0 / 0.5542 GB, free: 4.867 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.984e-06/0.3656, allocations: 3.984 kB / 0.5542 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002917/0.3685, allocations: 2.163 MB / 0.5563 GB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.3685, allocations: 3.984 kB / 0.5563 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000499/0.369, allocations: 123.8 kB / 0.5565 GB, free: 2.535 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.369, allocations: 3.938 kB / 0.5565 GB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.62e-05/0.3691, allocations: 20 kB / 0.5565 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.3691, allocations: 3.984 kB / 0.5565 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3691, allocations: 4 kB / 0.5565 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002471/0.3716, allocations: 1.948 MB / 0.5584 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000181/0.3717, allocations: 122.9 kB / 0.5585 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.037e-05/0.3718, allocations: 16 kB / 0.5585 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002698/0.3721, allocations: 27.97 kB / 0.5585 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.3722, allocations: 44.58 kB / 0.5586 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.819e-05/0.3722, allocations: 27.98 kB / 0.5586 GB, free: 304 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001063/0.3733, allocations: 0.8513 MB / 0.5594 GB, free: 15.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3733, allocations: 0 / 0.5594 GB, free: 15.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006288/0.3739, allocations: 219.1 kB / 0.5597 GB, free: 15.23 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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 (66): * Single equations (assignments): 66 * 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.0001896/0.3741, allocations: 119.2 kB / 0.5598 GB, free: 15.1 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001575/0.3757, allocations: 1.065 MB / 0.5608 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3757, allocations: 3.938 kB / 0.5608 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007072/0.3764, allocations: 0.5269 MB / 0.5613 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004541/0.3769, allocations: 61.11 kB / 0.5614 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0039/0.3808, allocations: 2.778 MB / 0.5641 GB, free: 10.63 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007823/0.3815, allocations: 0.7045 MB / 0.5648 GB, free: 9.895 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003525/0.3819, allocations: 120.3 kB / 0.5649 GB, free: 9.773 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.382, allocations: 51.42 kB / 0.5649 GB, free: 9.723 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.382, allocations: 4 kB / 0.565 GB, free: 9.719 MB / 414.1 MB Notification: Performance of Templates: time 0.01396/0.396, allocations: 5.956 MB / 0.5708 GB, free: 3.766 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile [Timeout 660] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.922100119292736] Failed to read output from testmodel.py, exit status != 0: 0.40423854254186153 0.418248305 0.077890094 Calling exit ...