Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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.001385/0.001385, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001442/0.001442, allocations: 212.9 kB / 22.99 MB, free: 4.984 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.458/1.458, 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.2/0.2, allocations: 29.23 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_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") [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.002059/0.002059, allocations: 63.91 kB / 479.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3289, allocations: 60.8 MB / 0.5277 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.004184/0.3331, allocations: 3.07 MB / 0.5307 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.3344, allocations: 0.6684 MB / 0.5314 GB, free: 5.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003386/0.3347, allocations: 19.34 kB / 0.5314 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003644/0.3351, allocations: 179.2 kB / 0.5316 GB, free: 5.457 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003055/0.3354, allocations: 137.5 kB / 0.5317 GB, free: 5.371 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006595/0.336, allocations: 356.7 kB / 0.532 GB, free: 5.184 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007408/0.3368, allocations: 0.8336 MB / 0.5329 GB, free: 4.801 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00062/0.3374, allocations: 0.5037 MB / 0.5334 GB, free: 4.469 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002611/0.3377, allocations: 336.5 kB / 0.5337 GB, free: 4.285 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003413/0.338, allocations: 434.9 kB / 0.5341 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001309/0.3381, allocations: 84.47 kB / 0.5342 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002234/0.3384, allocations: 116.5 kB / 0.5343 GB, free: 4.016 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000405/0.3388, allocations: 443 kB / 0.5347 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002898/0.3391, allocations: 468.6 kB / 0.5352 GB, free: 3.488 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001188/0.3402, allocations: 1.274 MB / 0.5364 GB, free: 2.707 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.3403, allocations: 3.984 kB / 0.5364 GB, free: 2.703 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3403, allocations: 0 / 0.5364 GB, free: 2.703 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.68e-05/0.3403, allocations: 3.938 kB / 0.5364 GB, free: 2.699 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001844/0.3421, allocations: 1.774 MB / 0.5381 GB, free: 1.316 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.3422, allocations: 13.08 kB / 0.5381 GB, free: 1.312 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002498/0.3424, allocations: 207 kB / 0.5383 GB, free: 1.199 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008616/0.3433, allocations: 0.7041 MB / 0.539 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.699e-05/0.3433, allocations: 77.08 kB / 0.5391 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.3435, allocations: 111.7 kB / 0.5392 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.3449, allocations: 1.16 MB / 0.5403 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.3449, allocations: 192 / 0.5403 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.117e-05/0.345, allocations: 50.23 kB / 0.5404 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.453e-05/0.345, allocations: 28.84 kB / 0.5404 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001542/0.3466, allocations: 1.093 MB / 0.5415 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004691/0.3512, allocations: 3.267 MB / 0.5447 GB, free: 13.19 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001625/0.3529, allocations: 1.3 MB / 0.5459 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005894/0.3535, allocations: 471.5 kB / 0.5464 GB, free: 12.56 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.419e-05/0.3535, allocations: 21.45 kB / 0.5464 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.587e-05/0.3536, allocations: 42.19 kB / 0.5465 GB, free: 12.51 MB / 398.1 MB Notification: Performance of pre-optimization done (n=68): time 3.096e-06/0.3536, allocations: 0 / 0.5465 GB, free: 12.51 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.00213/0.3557, allocations: 1.53 MB / 0.548 GB, free: 11.94 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.3558, allocations: 58.84 kB / 0.548 GB, free: 11.88 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001778/0.3575, allocations: 1.273 MB / 0.5493 GB, free: 10.78 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.077e-05/0.3576, allocations: 41.7 kB / 0.5493 GB, free: 10.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007159/0.3583, allocations: 0.7647 MB / 0.55 GB, free: 9.957 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002178/0.3585, allocations: 250 kB / 0.5503 GB, free: 9.711 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00018/0.3587, allocations: 114.7 kB / 0.5504 GB, free: 9.594 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.3589, allocations: 333.9 kB / 0.5507 GB, free: 9.262 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005831/0.3595, allocations: 437.8 kB / 0.5511 GB, free: 8.832 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006646/0.3601, allocations: 0.5311 MB / 0.5516 GB, free: 8.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/0.3615, allocations: 1.01 MB / 0.5526 GB, free: 7.227 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.3615, allocations: 0 / 0.5526 GB, free: 7.227 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001641/0.3631, allocations: 1.187 MB / 0.5538 GB, free: 6.031 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.3631, allocations: 11.98 kB / 0.5538 GB, free: 6.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.3632, allocations: 0 / 0.5538 GB, free: 6.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/0.3632, allocations: 8 kB / 0.5538 GB, free: 6.012 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004688/0.3636, allocations: 131.8 kB / 0.5539 GB, free: 5.883 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.572e-05/0.3637, allocations: 12.3 kB / 0.5539 GB, free: 5.871 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002944/0.364, allocations: 55.56 kB / 0.554 GB, free: 5.816 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.097e-05/0.364, allocations: 27.98 kB / 0.554 GB, free: 5.789 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 (83): * Single equations (assignments): 83 * 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.0006/0.3646, allocations: 373.5 kB / 0.5544 GB, free: 5.414 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001744/0.3648, allocations: 147 kB / 0.5545 GB, free: 5.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001695/0.3665, allocations: 1.203 MB / 0.5557 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.3665, allocations: 8 kB / 0.5557 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3665, allocations: 0 / 0.5557 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.3665, allocations: 3.984 kB / 0.5557 GB, free: 4.039 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002822/0.3693, allocations: 2.156 MB / 0.5578 GB, free: 1.844 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3693, allocations: 0 / 0.5578 GB, free: 1.844 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004729/0.3698, allocations: 111.9 kB / 0.5579 GB, free: 1.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.3698, allocations: 0 / 0.5579 GB, free: 1.734 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.779e-05/0.3698, allocations: 19.98 kB / 0.5579 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.3698, allocations: 0 / 0.5579 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3698, allocations: 0 / 0.5579 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002321/0.3722, allocations: 1.898 MB / 0.5598 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002138/0.3724, allocations: 130.8 kB / 0.5599 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.176e-05/0.3725, allocations: 19.98 kB / 0.5599 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002154/0.3727, allocations: 12 kB / 0.5599 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.981e-05/0.3728, allocations: 36.58 kB / 0.56 GB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.571e-05/0.3728, allocations: 23.98 kB / 0.56 GB, free: 15.58 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001266/0.3741, allocations: 0.8723 MB / 0.5609 GB, free: 14.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3741, allocations: 0 / 0.5609 GB, free: 14.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006487/0.3747, allocations: 219.1 kB / 0.5611 GB, free: 14.49 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 (68): * Single equations (assignments): 68 * 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.0002052/0.3749, allocations: 119.1 kB / 0.5612 GB, free: 14.37 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001298/0.3762, allocations: 0.966 MB / 0.5621 GB, free: 13.4 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3762, allocations: 0 / 0.5621 GB, free: 13.4 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006058/0.3768, allocations: 0.4995 MB / 0.5626 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006106/0.3774, allocations: 97.22 kB / 0.5627 GB, free: 12.81 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003834/0.3813, allocations: 2.787 MB / 0.5654 GB, free: 9.988 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007776/0.3821, allocations: 0.7132 MB / 0.5661 GB, free: 9.242 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002259/0.3823, allocations: 76.36 kB / 0.5662 GB, free: 9.168 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.3824, allocations: 47.42 kB / 0.5662 GB, free: 9.125 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3824, allocations: 0 / 0.5662 GB, free: 9.125 MB / 414.1 MB Notification: Performance of Templates: time 0.01348/0.3959, allocations: 5.988 MB / 0.5721 GB, free: 3.152 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile [Timeout 660] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.967121357971337] Failed to read output from testmodel.py, exit status != 0: 0.4046710910042748 0.418781746 0.075362092 Calling exit ...