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.001629/0.001629, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.001691/0.001691, allocations: 212.2 kB / 22.99 MB, free: 4.957 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.477/1.477, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.2021/0.2021, allocations: 29.22 MB / 342.4 MB, free: 5.59 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.002038/0.002038, allocations: 67.89 kB / 479.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3608/0.3629, allocations: 60.79 MB / 0.5277 GB, free: 8.117 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.006525/0.3694, allocations: 3.081 MB / 0.5307 GB, free: 6.055 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00277/0.3721, allocations: 0.6716 MB / 0.5314 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007768/0.3729, allocations: 22.5 kB / 0.5314 GB, free: 5.551 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006426/0.3736, allocations: 175.4 kB / 0.5316 GB, free: 5.445 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005626/0.3741, allocations: 137.4 kB / 0.5317 GB, free: 5.359 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001216/0.3753, allocations: 351.3 kB / 0.532 GB, free: 5.176 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009705/0.3763, allocations: 0.8414 MB / 0.5329 GB, free: 4.785 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009149/0.3772, allocations: 0.491 MB / 0.5333 GB, free: 4.465 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005086/0.3777, allocations: 348 kB / 0.5337 GB, free: 4.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005414/0.3783, allocations: 429.8 kB / 0.5341 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002276/0.3785, allocations: 84.91 kB / 0.5342 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003843/0.3789, allocations: 115.6 kB / 0.5343 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006169/0.3795, allocations: 434.9 kB / 0.5347 GB, free: 3.805 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004451/0.38, allocations: 476.5 kB / 0.5352 GB, free: 3.477 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00187/0.3818, allocations: 1.276 MB / 0.5364 GB, free: 2.707 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3818, allocations: 0 / 0.5364 GB, free: 2.707 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3818, allocations: 0 / 0.5364 GB, free: 2.707 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.108e-05/0.3819, allocations: 0 / 0.5364 GB, free: 2.707 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.00298/0.3848, allocations: 1.763 MB / 0.5381 GB, free: 1.332 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.3849, allocations: 13.91 kB / 0.5381 GB, free: 1.328 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003192/0.3852, allocations: 210.7 kB / 0.5383 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.3864, allocations: 0.7041 MB / 0.539 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.885e-05/0.3865, allocations: 77.06 kB / 0.5391 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001711/0.3867, allocations: 103.7 kB / 0.5392 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002284/0.389, allocations: 1.163 MB / 0.5403 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.516e-05/0.389, allocations: 1.531 kB / 0.5403 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001117/0.3891, allocations: 53.03 kB / 0.5404 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.885e-05/0.3892, allocations: 25.38 kB / 0.5404 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002142/0.3913, allocations: 1.085 MB / 0.5415 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005859/0.3972, allocations: 3.254 MB / 0.5446 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001873/0.3991, allocations: 1.303 MB / 0.5459 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005995/0.3997, allocations: 465.2 kB / 0.5464 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.914e-05/0.3997, allocations: 20.95 kB / 0.5464 GB, free: 12.58 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.841e-05/0.3998, allocations: 45.69 kB / 0.5464 GB, free: 12.53 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.835e-06/0.3998, allocations: 1.031 kB / 0.5464 GB, free: 12.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.002154/0.4019, allocations: 1.523 MB / 0.5479 GB, free: 11.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.83e-05/0.402, allocations: 62.98 kB / 0.548 GB, free: 11.9 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001867/0.4039, allocations: 1.273 MB / 0.5492 GB, free: 10.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.698e-05/0.4039, allocations: 37.69 kB / 0.5492 GB, free: 10.76 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006829/0.4046, allocations: 0.7686 MB / 0.55 GB, free: 9.984 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002003/0.4048, allocations: 238.2 kB / 0.5502 GB, free: 9.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001699/0.405, allocations: 118.3 kB / 0.5503 GB, free: 9.629 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.4051, allocations: 334 kB / 0.5507 GB, free: 9.297 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005394/0.4057, allocations: 433.1 kB / 0.5511 GB, free: 8.871 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006457/0.4063, allocations: 0.5239 MB / 0.5516 GB, free: 8.312 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/0.4076, allocations: 0.998 MB / 0.5526 GB, free: 7.285 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.4076, allocations: 0 / 0.5526 GB, free: 7.285 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001652/0.4093, allocations: 1.191 MB / 0.5537 GB, free: 6.086 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.4093, allocations: 4 kB / 0.5537 GB, free: 6.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.4093, allocations: 4 kB / 0.5537 GB, free: 6.078 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.4093, allocations: 4 kB / 0.5537 GB, free: 6.074 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004627/0.4098, allocations: 135.8 kB / 0.5539 GB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/0.4098, allocations: 4 kB / 0.5539 GB, free: 5.938 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003112/0.4101, allocations: 51.88 kB / 0.5539 GB, free: 5.887 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.364e-05/0.4102, allocations: 32 kB / 0.5539 GB, free: 5.855 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.0005929/0.4107, allocations: 369.5 kB / 0.5543 GB, free: 5.484 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000197/0.4109, allocations: 151 kB / 0.5544 GB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001828/0.4128, allocations: 1.195 MB / 0.5556 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.4128, allocations: 8 kB / 0.5556 GB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.4128, allocations: 0 / 0.5556 GB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.138e-06/0.4128, allocations: 3.984 kB / 0.5556 GB, free: 4.117 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003232/0.416, allocations: 2.144 MB / 0.5577 GB, free: 1.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.416, allocations: 0 / 0.5577 GB, free: 1.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004556/0.4165, allocations: 115.8 kB / 0.5578 GB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.091e-05/0.4165, allocations: 4 kB / 0.5578 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.152e-05/0.4165, allocations: 12 kB / 0.5578 GB, free: 1.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.138e-05/0.4166, allocations: 7.984 kB / 0.5578 GB, free: 1.793 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4166, allocations: 0 / 0.5578 GB, free: 1.793 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002337/0.4189, allocations: 1.882 MB / 0.5597 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002464/0.4191, allocations: 130.8 kB / 0.5598 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.4192, allocations: 8.062 kB / 0.5598 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002329/0.4195, allocations: 15.98 kB / 0.5598 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.016e-05/0.4196, allocations: 48.58 kB / 0.5599 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-05/0.4196, allocations: 16 kB / 0.5599 GB, free: 15.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001469/0.4211, allocations: 0.8764 MB / 0.5608 GB, free: 14.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4211, allocations: 0 / 0.5608 GB, free: 14.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006402/0.4217, allocations: 211.2 kB / 0.561 GB, free: 14.6 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.0002169/0.4219, allocations: 123 kB / 0.5611 GB, free: 14.47 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001347/0.4233, allocations: 0.9588 MB / 0.562 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.4233, allocations: 4 kB / 0.562 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007402/0.424, allocations: 0.4956 MB / 0.5625 GB, free: 13.01 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000662/0.4247, allocations: 83.09 kB / 0.5626 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005016/0.4297, allocations: 2.79 MB / 0.5653 GB, free: 10.1 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008471/0.4305, allocations: 0.7171 MB / 0.566 GB, free: 9.348 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002726/0.4308, allocations: 68.36 kB / 0.5661 GB, free: 9.281 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/0.4309, allocations: 47.44 kB / 0.5661 GB, free: 9.238 MB / 414.1 MB Notification: Performance of SimCode: time 1.383e-06/0.4309, allocations: 0 / 0.5661 GB, free: 9.238 MB / 414.1 MB Notification: Performance of Templates: time 0.01525/0.4462, allocations: 5.975 MB / 0.5719 GB, free: 3.285 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 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.011503151035868] Failed to read output from testmodel.py, exit status != 0: 0.4552835290087387 0.470264629 0.08532289100000001 Calling exit ...