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.001332/0.001332, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001479/0.001479, allocations: 220.4 kB / 23 MB, free: 4.914 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: 230.6 MB / 256.8 MB, free: 7.781 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.1983/0.1983, allocations: 29.23 MB / 342.4 MB, free: 5.613 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.002041/0.002041, allocations: 67.89 kB / 479.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3717/0.3738, allocations: 60.79 MB / 0.5277 GB, free: 8.137 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.00427/0.3781, allocations: 2.757 MB / 0.5304 GB, free: 6.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.3795, allocations: 0.5259 MB / 0.5309 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000282/0.3798, allocations: 11.91 kB / 0.531 GB, free: 5.902 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003464/0.3801, allocations: 144.3 kB / 0.5311 GB, free: 5.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003111/0.3804, allocations: 135.7 kB / 0.5312 GB, free: 5.738 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006754/0.3811, allocations: 285 kB / 0.5315 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007352/0.3818, allocations: 0.7237 MB / 0.5322 GB, free: 5.277 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005641/0.3824, allocations: 347 kB / 0.5325 GB, free: 5.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000276/0.3827, allocations: 316.2 kB / 0.5328 GB, free: 4.898 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003616/0.383, allocations: 349 kB / 0.5332 GB, free: 4.715 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001471/0.3832, allocations: 75.16 kB / 0.5332 GB, free: 4.715 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002289/0.3834, allocations: 108.6 kB / 0.5333 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000387/0.3838, allocations: 445 kB / 0.5338 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003239/0.3841, allocations: 440.9 kB / 0.5342 GB, free: 4.199 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00123/0.3853, allocations: 1.164 MB / 0.5353 GB, free: 3.594 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3853, allocations: 5 kB / 0.5353 GB, free: 3.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3853, allocations: 4 kB / 0.5353 GB, free: 3.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.795e-05/0.3854, allocations: 0 / 0.5353 GB, free: 3.586 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.001905/0.3873, allocations: 1.696 MB / 0.537 GB, free: 2.293 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.3873, allocations: 13.61 kB / 0.537 GB, free: 2.289 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001878/0.3875, allocations: 198.2 kB / 0.5372 GB, free: 2.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004117/0.3879, allocations: 0.5223 MB / 0.5377 GB, free: 1.734 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.925e-05/0.388, allocations: 75.62 kB / 0.5378 GB, free: 1.699 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.3881, allocations: 96.34 kB / 0.5379 GB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001554/0.3896, allocations: 1.074 MB / 0.5389 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.872e-05/0.3897, allocations: 4.188 kB / 0.5389 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.025e-05/0.3897, allocations: 44.75 kB / 0.539 GB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.871e-05/0.3898, allocations: 56.62 kB / 0.539 GB, free: 1.113 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001711/0.3915, allocations: 1.208 MB / 0.5402 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004064/0.3956, allocations: 2.474 MB / 0.5426 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.3971, allocations: 0.9687 MB / 0.5436 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007123/0.3978, allocations: 494.3 kB / 0.544 GB, free: 14.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.928e-05/0.3979, allocations: 31.72 kB / 0.5441 GB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.853e-05/0.3979, allocations: 43.41 kB / 0.5441 GB, free: 14.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 3.216e-06/0.3979, allocations: 0 / 0.5441 GB, free: 14.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.00256/0.4005, allocations: 1.595 MB / 0.5457 GB, free: 14.05 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.719e-05/0.4005, allocations: 59.34 kB / 0.5457 GB, free: 13.99 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001791/0.4023, allocations: 1.246 MB / 0.5469 GB, free: 13.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.753e-05/0.4024, allocations: 37.7 kB / 0.547 GB, free: 13.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007166/0.4031, allocations: 0.7754 MB / 0.5477 GB, free: 12.46 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002261/0.4033, allocations: 242.1 kB / 0.548 GB, free: 12.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001819/0.4035, allocations: 130.6 kB / 0.5481 GB, free: 12.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.4037, allocations: 337.9 kB / 0.5484 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000707/0.4044, allocations: 477.7 kB / 0.5489 GB, free: 11.29 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008929/0.4053, allocations: 0.656 MB / 0.5495 GB, free: 10.55 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004348/0.4096, allocations: 2.129 MB / 0.5516 GB, free: 8.344 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.786e-06/0.4096, allocations: 4 kB / 0.5516 GB, free: 8.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002154/0.4118, allocations: 1.336 MB / 0.5529 GB, free: 6.996 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.943e-05/0.4118, allocations: 11.98 kB / 0.5529 GB, free: 6.984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/0.4118, allocations: 12.06 kB / 0.5529 GB, free: 6.973 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.517e-05/0.4119, allocations: 11.94 kB / 0.5529 GB, free: 6.961 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000599/0.4125, allocations: 171.7 kB / 0.5531 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.475e-05/0.4125, allocations: 19.92 kB / 0.5531 GB, free: 6.773 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000489/0.413, allocations: 75.5 kB / 0.5532 GB, free: 6.699 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.626e-05/0.4131, allocations: 36 kB / 0.5532 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.001156/0.4142, allocations: 402.6 kB / 0.5536 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001907/0.4144, allocations: 139.1 kB / 0.5537 GB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002012/0.4164, allocations: 1.249 MB / 0.5549 GB, free: 4.871 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.4164, allocations: 12 kB / 0.555 GB, free: 4.859 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/0.4164, allocations: 0 / 0.555 GB, free: 4.859 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.4164, allocations: 3.984 kB / 0.555 GB, free: 4.855 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003158/0.4196, allocations: 2.159 MB / 0.5571 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.4196, allocations: 0 / 0.5571 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005121/0.4201, allocations: 131.8 kB / 0.5572 GB, free: 2.527 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.121e-05/0.4201, allocations: 7.938 kB / 0.5572 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.977e-05/0.4202, allocations: 15.98 kB / 0.5572 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.244e-06/0.4202, allocations: 4 kB / 0.5572 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4202, allocations: 0 / 0.5572 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002664/0.4228, allocations: 1.949 MB / 0.5591 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002122/0.423, allocations: 126.9 kB / 0.5592 GB, free: 416 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.036e-05/0.4231, allocations: 15.98 kB / 0.5593 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002612/0.4234, allocations: 23.98 kB / 0.5593 GB, free: 376 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.4235, allocations: 56.44 kB / 0.5593 GB, free: 316 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.832e-05/0.4235, allocations: 20 kB / 0.5594 GB, free: 296 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001253/0.4248, allocations: 0.8513 MB / 0.5602 GB, free: 15.44 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4248, allocations: 0 / 0.5602 GB, free: 15.44 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008036/0.4256, allocations: 223.2 kB / 0.5604 GB, free: 15.22 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.0002168/0.4258, allocations: 111.2 kB / 0.5605 GB, free: 15.1 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001714/0.4275, allocations: 1.064 MB / 0.5615 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4275, allocations: 0 / 0.5615 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007633/0.4283, allocations: 0.5315 MB / 0.5621 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004985/0.4288, allocations: 57.12 kB / 0.5621 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004663/0.4335, allocations: 2.874 MB / 0.5649 GB, free: 10.53 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008464/0.4343, allocations: 0.7006 MB / 0.5656 GB, free: 9.797 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002379/0.4345, allocations: 63.42 kB / 0.5657 GB, free: 9.734 MB / 414.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4345, allocations: 0 / 0.5657 GB, free: 9.734 MB / 414.1 MB Notification: Performance of Templates: time 0.02087/0.4554, allocations: 11.38 MB / 0.5768 GB, free: 14.34 MB / 430.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: 7.919388918206096] Failed to read output from testmodel.py, exit status != 0: 0.46457156213000417 0.47998076900000003 0.091346016 Calling exit ...