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.00157/0.00157, allocations: 103.6 kB / 18.95 MB, free: 2.688 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.001902/0.001902, allocations: 212.5 kB / 22.24 MB, free: 5.242 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.451/1.451, allocations: 230.6 MB / 256 MB, free: 7.805 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.1827/0.1827, allocations: 29.23 MB / 341.6 MB, free: 5.594 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_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: 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.002243/0.002243, allocations: 63.91 kB / 478.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.3653, allocations: 60.79 MB / 0.527 GB, free: 8.121 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.004379/0.3696, allocations: 3.08 MB / 0.53 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001983/0.3716, allocations: 0.6724 MB / 0.5307 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005602/0.3722, allocations: 18.44 kB / 0.5307 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004717/0.3726, allocations: 172.6 kB / 0.5308 GB, free: 5.457 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003665/0.373, allocations: 135.7 kB / 0.531 GB, free: 5.371 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000815/0.3738, allocations: 359.2 kB / 0.5313 GB, free: 5.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008237/0.3747, allocations: 0.8367 MB / 0.5321 GB, free: 4.793 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006648/0.3753, allocations: 471.9 kB / 0.5326 GB, free: 4.504 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002996/0.3756, allocations: 336 kB / 0.5329 GB, free: 4.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003313/0.3759, allocations: 381.6 kB / 0.5333 GB, free: 4.109 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001418/0.3761, allocations: 85.25 kB / 0.5333 GB, free: 4.109 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002262/0.3763, allocations: 112.8 kB / 0.5335 GB, free: 4.105 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003706/0.3767, allocations: 442 kB / 0.5339 GB, free: 3.898 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003133/0.377, allocations: 468.4 kB / 0.5343 GB, free: 3.578 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001221/0.3782, allocations: 1.275 MB / 0.5356 GB, free: 2.801 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.3782, allocations: 3.938 kB / 0.5356 GB, free: 2.797 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3782, allocations: 0 / 0.5356 GB, free: 2.797 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.108e-05/0.3782, allocations: 0 / 0.5356 GB, free: 2.797 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001921/0.3802, allocations: 1.764 MB / 0.5373 GB, free: 1.422 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.3802, allocations: 13.62 kB / 0.5373 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002317/0.3804, allocations: 207.7 kB / 0.5375 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008621/0.3813, allocations: 0.7078 MB / 0.5382 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.517e-05/0.3814, allocations: 77.03 kB / 0.5383 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.3815, allocations: 108 kB / 0.5384 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001444/0.3829, allocations: 1.154 MB / 0.5395 GB, free: 8 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.531e-05/0.383, allocations: 5.219 kB / 0.5395 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001046/0.3831, allocations: 49.11 kB / 0.5396 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.61e-05/0.3831, allocations: 25.84 kB / 0.5396 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001564/0.3847, allocations: 1.094 MB / 0.5406 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00473/0.3894, allocations: 3.246 MB / 0.5438 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001722/0.3911, allocations: 1.303 MB / 0.5451 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005752/0.3917, allocations: 464.2 kB / 0.5455 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.775e-05/0.3918, allocations: 24.8 kB / 0.5456 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.3918, allocations: 39.31 kB / 0.5456 GB, free: 12.63 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.986e-06/0.3918, allocations: 0 / 0.5456 GB, free: 12.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.002051/0.3938, allocations: 1.524 MB / 0.5471 GB, free: 12.06 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.3e-05/0.3939, allocations: 58.72 kB / 0.5471 GB, free: 12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001613/0.3955, allocations: 1.273 MB / 0.5484 GB, free: 10.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.488e-05/0.3956, allocations: 41.7 kB / 0.5484 GB, free: 10.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000648/0.3962, allocations: 0.7685 MB / 0.5492 GB, free: 10.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002022/0.3964, allocations: 238.2 kB / 0.5494 GB, free: 9.867 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/0.3966, allocations: 118.3 kB / 0.5495 GB, free: 9.746 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.3967, allocations: 334 kB / 0.5498 GB, free: 9.414 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005586/0.3973, allocations: 433.1 kB / 0.5502 GB, free: 8.988 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006247/0.3979, allocations: 0.5239 MB / 0.5508 GB, free: 8.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001216/0.3991, allocations: 1.002 MB / 0.5517 GB, free: 7.398 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.3991, allocations: 0 / 0.5517 GB, free: 7.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.00164/0.4008, allocations: 1.191 MB / 0.5529 GB, free: 6.199 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.4008, allocations: 4 kB / 0.5529 GB, free: 6.195 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.4008, allocations: 4 kB / 0.5529 GB, free: 6.191 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.698e-05/0.4008, allocations: 4 kB / 0.5529 GB, free: 6.188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004572/0.4013, allocations: 127.8 kB / 0.553 GB, free: 6.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.502e-05/0.4013, allocations: 7.984 kB / 0.553 GB, free: 6.055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003324/0.4016, allocations: 59.5 kB / 0.5531 GB, free: 5.996 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.186e-05/0.4017, allocations: 24.31 kB / 0.5531 GB, free: 5.973 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 (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.0007143/0.4024, allocations: 373.5 kB / 0.5535 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001989/0.4026, allocations: 147 kB / 0.5536 GB, free: 5.453 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001685/0.4043, allocations: 1.195 MB / 0.5548 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.4043, allocations: 8 kB / 0.5548 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.4043, allocations: 0 / 0.5548 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.4043, allocations: 3.984 kB / 0.5548 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002874/0.4072, allocations: 2.144 MB / 0.5569 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.4072, allocations: 0 / 0.5569 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004397/0.4076, allocations: 111.9 kB / 0.557 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.849e-06/0.4076, allocations: 4 kB / 0.557 GB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.5e-05/0.4077, allocations: 12 kB / 0.557 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.955e-06/0.4077, allocations: 7.938 kB / 0.557 GB, free: 1.914 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.4077, allocations: 0 / 0.557 GB, free: 1.914 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002231/0.4099, allocations: 1.882 MB / 0.5589 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002417/0.4101, allocations: 131 kB / 0.559 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.985e-05/0.4102, allocations: 8.188 kB / 0.559 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/0.4104, allocations: 20 kB / 0.559 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.155e-05/0.4105, allocations: 44.56 kB / 0.559 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.713e-05/0.4106, allocations: 20 kB / 0.5591 GB, free: 15.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001234/0.4118, allocations: 0.8764 MB / 0.5599 GB, free: 14.92 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4118, allocations: 0 / 0.5599 GB, free: 14.92 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006158/0.4124, allocations: 211.2 kB / 0.5601 GB, free: 14.71 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 (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.0002085/0.4126, allocations: 122.8 kB / 0.5602 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.4139, allocations: 0.9626 MB / 0.5612 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.4139, allocations: 4.062 kB / 0.5612 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005908/0.4145, allocations: 0.4917 MB / 0.5617 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000639/0.4152, allocations: 92.62 kB / 0.5618 GB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004258/0.4194, allocations: 2.79 MB / 0.5645 GB, free: 10.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008302/0.4202, allocations: 0.7171 MB / 0.5652 GB, free: 9.465 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002758/0.4205, allocations: 68.36 kB / 0.5652 GB, free: 9.398 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.4206, allocations: 51.38 kB / 0.5653 GB, free: 9.352 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4206, allocations: 0 / 0.5653 GB, free: 9.352 MB / 414.1 MB Notification: Performance of Templates: time 0.01417/0.4348, allocations: 5.796 MB / 0.571 GB, free: 3.57 MB / 414.1 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 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.966946084052324] Failed to read output from testmodel.py, exit status != 0: 0.4439661242067814 0.458641347 0.077171206 Calling exit ...