Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 101.7 kB / 19.59 MB, free: 2.324 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 194 kB / 22.85 MB, free: 5.652 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 225.6 MB / 251.5 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1995/0.1995, allocations: 29.23 MB / 336 MB, free: 11.45 MB / 270.1 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 63.89 kB / 470.8 MB, free: 6.938 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3666/0.3686, allocations: 59.61 MB / 0.518 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.004395/0.373, allocations: 3.644 MB / 0.5215 GB, free: 7.348 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.3744, allocations: 0.6689 MB / 0.5222 GB, free: 6.852 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003304/0.3748, allocations: 18.25 kB / 0.5222 GB, free: 6.848 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004263/0.3752, allocations: 174.2 kB / 0.5224 GB, free: 6.734 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003045/0.3755, allocations: 118.6 kB / 0.5225 GB, free: 6.656 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007209/0.3762, allocations: 355.5 kB / 0.5228 GB, free: 6.469 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008808/0.3771, allocations: 0.8444 MB / 0.5236 GB, free: 6.078 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007203/0.3778, allocations: 0.5049 MB / 0.5241 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004017/0.3782, allocations: 350.6 kB / 0.5245 GB, free: 5.555 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004276/0.3787, allocations: 434.9 kB / 0.5249 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001418/0.3788, allocations: 85.38 kB / 0.525 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002405/0.379, allocations: 119.7 kB / 0.5251 GB, free: 5.285 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004282/0.3795, allocations: 445 kB / 0.5255 GB, free: 5.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003896/0.3799, allocations: 0.5964 MB / 0.5261 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001459/0.3813, allocations: 1.252 MB / 0.5273 GB, free: 3.965 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3813, allocations: 8 kB / 0.5273 GB, free: 3.957 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3813, allocations: 0 / 0.5273 GB, free: 3.957 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.871e-05/0.3813, allocations: 3.938 kB / 0.5273 GB, free: 3.953 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.002226/0.3836, allocations: 1.716 MB / 0.529 GB, free: 2.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.3836, allocations: 9.188 kB / 0.529 GB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002913/0.3839, allocations: 201.1 kB / 0.5292 GB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001012/0.3849, allocations: 0.6934 MB / 0.5299 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.963e-05/0.385, allocations: 75.3 kB / 0.53 GB, free: 2.121 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001562/0.3851, allocations: 103.3 kB / 0.53 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001915/0.3871, allocations: 1.132 MB / 0.5312 GB, free: 1.609 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.3871, allocations: 192 / 0.5312 GB, free: 1.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.209e-05/0.3871, allocations: 45.22 kB / 0.5312 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.572e-05/0.3872, allocations: 25.06 kB / 0.5312 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001593/0.3888, allocations: 1.056 MB / 0.5323 GB, free: 1.312 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00492/0.3937, allocations: 3.486 MB / 0.5357 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002048/0.3957, allocations: 1.241 MB / 0.5369 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007005/0.3964, allocations: 446.1 kB / 0.5373 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.164e-05/0.3965, allocations: 26.33 kB / 0.5373 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/0.3966, allocations: 38.72 kB / 0.5374 GB, free: 14.87 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.755e-06/0.3966, allocations: 0 / 0.5374 GB, free: 14.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.002294/0.3989, allocations: 1.459 MB / 0.5388 GB, free: 14.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.3989, allocations: 58.69 kB / 0.5388 GB, free: 14.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/0.4006, allocations: 1.233 MB / 0.54 GB, free: 13.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.481e-05/0.4007, allocations: 37.53 kB / 0.5401 GB, free: 13.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006672/0.4014, allocations: 0.7657 MB / 0.5408 GB, free: 13.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002118/0.4016, allocations: 235.7 kB / 0.5411 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001812/0.4017, allocations: 113.5 kB / 0.5412 GB, free: 12.99 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.4019, allocations: 338.8 kB / 0.5415 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005436/0.4025, allocations: 415 kB / 0.5419 GB, free: 12.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006841/0.4031, allocations: 0.5029 MB / 0.5424 GB, free: 12.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001238/0.4044, allocations: 0.9505 MB / 0.5433 GB, free: 11.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.4044, allocations: 0 / 0.5433 GB, free: 11.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001552/0.4059, allocations: 1.141 MB / 0.5444 GB, free: 11.4 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.406, allocations: 5.812 kB / 0.5444 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.406, allocations: 3.375 kB / 0.5444 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.393e-05/0.406, allocations: 5.594 kB / 0.5444 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004444/0.4064, allocations: 127 kB / 0.5445 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.4064, allocations: 10.53 kB / 0.5446 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002573/0.4067, allocations: 47.16 kB / 0.5446 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.536e-05/0.4068, allocations: 30.61 kB / 0.5446 GB, free: 11.32 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 (81): * Single equations (assignments): 81 * 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.0004964/0.4072, allocations: 356.7 kB / 0.545 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001779/0.4074, allocations: 148 kB / 0.5451 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001538/0.409, allocations: 1.152 MB / 0.5462 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.409, allocations: 6.906 kB / 0.5462 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.409, allocations: 3.938 kB / 0.5462 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.409, allocations: 4 kB / 0.5463 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002799/0.4118, allocations: 2.256 MB / 0.5485 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.4118, allocations: 0 / 0.5485 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004373/0.4122, allocations: 105.7 kB / 0.5486 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.199e-06/0.4122, allocations: 2.5 kB / 0.5486 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.83e-05/0.4123, allocations: 17.27 kB / 0.5486 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.4123, allocations: 2.812 kB / 0.5486 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.4123, allocations: 3.938 kB / 0.5486 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002138/0.4144, allocations: 1.796 MB / 0.5503 GB, free: 7.961 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00017/0.4146, allocations: 130.9 kB / 0.5505 GB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.711e-05/0.4147, allocations: 8.062 kB / 0.5505 GB, free: 7.824 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002104/0.4149, allocations: 16 kB / 0.5505 GB, free: 7.809 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.338e-05/0.4149, allocations: 40.58 kB / 0.5505 GB, free: 7.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.728e-05/0.415, allocations: 23.92 kB / 0.5505 GB, free: 7.746 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001151/0.4161, allocations: 0.8519 MB / 0.5514 GB, free: 6.895 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4161, allocations: 0 / 0.5514 GB, free: 6.895 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006247/0.4168, allocations: 207.2 kB / 0.5516 GB, free: 6.691 MB / 398.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 (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.000203/0.417, allocations: 123.1 kB / 0.5517 GB, free: 6.562 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001274/0.4182, allocations: 0.9152 MB / 0.5526 GB, free: 5.648 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4182, allocations: 0 / 0.5526 GB, free: 5.648 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005688/0.4188, allocations: 479.5 kB / 0.553 GB, free: 5.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006214/0.4194, allocations: 96.34 kB / 0.5531 GB, free: 5.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003802/0.4232, allocations: 2.697 MB / 0.5558 GB, free: 2.359 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001004/0.4242, allocations: 1.287 MB / 0.557 GB, free: 1.047 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002198/0.4244, allocations: 76.36 kB / 0.5571 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.4246, allocations: 51.42 kB / 0.5571 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4246, allocations: 0 / 0.5571 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of Templates: time 0.01324/0.4378, allocations: 5.526 MB / 0.5625 GB, free: 11.4 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.makefile [Timeout 660] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.046479454031214] Failed to read output from testmodel.py, exit status != 0: 0.44622874702326953 0.460473728 0.076154097 Calling exit ...