Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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.001382/0.001382, allocations: 99.64 kB / 18.95 MB, free: 2.676 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.001562/0.001562, allocations: 204.8 kB / 22.24 MB, free: 5.262 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.363/1.363, allocations: 230.6 MB / 256 MB, free: 7.793 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.178/0.178, allocations: 29.24 MB / 341.7 MB, free: 5.598 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: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_6,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6",fmuType="me",version="2.0",platforms={"static"}) [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.002207/0.002207, allocations: 68.17 kB / 478.4 MB, free: 376 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3285, allocations: 60.79 MB / 0.5265 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004173/0.3327, allocations: 3.114 MB / 0.5296 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.3341, allocations: 0.7623 MB / 0.5303 GB, free: 5.215 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003183/0.3344, allocations: 23.41 kB / 0.5303 GB, free: 5.207 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003949/0.3348, allocations: 167.9 kB / 0.5305 GB, free: 5.109 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002957/0.3351, allocations: 137.2 kB / 0.5306 GB, free: 5.023 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007424/0.3358, allocations: 380.4 kB / 0.531 GB, free: 4.824 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007955/0.3366, allocations: 0.8548 MB / 0.5318 GB, free: 4.434 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006121/0.3373, allocations: 474 kB / 0.5323 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002682/0.3375, allocations: 355.7 kB / 0.5326 GB, free: 3.945 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003503/0.3379, allocations: 385.6 kB / 0.533 GB, free: 3.742 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001334/0.338, allocations: 86.62 kB / 0.5331 GB, free: 3.742 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002076/0.3382, allocations: 119.5 kB / 0.5332 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003742/0.3386, allocations: 447.1 kB / 0.5336 GB, free: 3.523 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002954/0.3389, allocations: 480 kB / 0.5341 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001122/0.34, allocations: 1.29 MB / 0.5353 GB, free: 2.477 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.34, allocations: 0 / 0.5353 GB, free: 2.477 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.34, allocations: 1.188 kB / 0.5353 GB, free: 2.477 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.605e-05/0.34, allocations: 0 / 0.5353 GB, free: 2.477 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.001815/0.3418, allocations: 1.786 MB / 0.5371 GB, free: 1.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.3419, allocations: 13.69 kB / 0.5371 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001769/0.3421, allocations: 173 kB / 0.5372 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002027/0.3423, allocations: 213.2 kB / 0.5374 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007984/0.3431, allocations: 0.7074 MB / 0.5381 GB, free: 256 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.078e-05/0.3431, allocations: 81.42 kB / 0.5382 GB, free: 216 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001098/0.3432, allocations: 114.5 kB / 0.5383 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001619/0.3449, allocations: 1.188 MB / 0.5395 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.3449, allocations: 11.88 kB / 0.5395 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.585e-05/0.3449, allocations: 42.06 kB / 0.5395 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.649e-05/0.345, allocations: 26 kB / 0.5396 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001504/0.3465, allocations: 1.109 MB / 0.5406 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004479/0.351, allocations: 3.433 MB / 0.544 GB, free: 12.65 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001663/0.3526, allocations: 1.332 MB / 0.5453 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005526/0.3532, allocations: 477.8 kB / 0.5457 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.324e-05/0.3532, allocations: 20.73 kB / 0.5458 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007436/0.354, allocations: 0.5473 MB / 0.5463 GB, free: 11.74 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.665e-06/0.354, allocations: 1.125 kB / 0.5463 GB, free: 11.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.002057/0.356, allocations: 1.576 MB / 0.5478 GB, free: 11.01 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.3561, allocations: 71.94 kB / 0.5479 GB, free: 10.93 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001516/0.3576, allocations: 1.304 MB / 0.5492 GB, free: 9.613 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.625e-05/0.3577, allocations: 41.7 kB / 0.5492 GB, free: 9.566 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000625/0.3583, allocations: 0.7886 MB / 0.55 GB, free: 8.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002008/0.3585, allocations: 253.8 kB / 0.5502 GB, free: 8.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001646/0.3587, allocations: 118.7 kB / 0.5503 GB, free: 8.398 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.3588, allocations: 334 kB / 0.5507 GB, free: 8.066 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005524/0.3594, allocations: 445.8 kB / 0.5511 GB, free: 7.629 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000629/0.36, allocations: 0.5445 MB / 0.5516 GB, free: 7.043 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001327/0.3613, allocations: 1.051 MB / 0.5526 GB, free: 5.953 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3613, allocations: 0 / 0.5526 GB, free: 5.953 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001492/0.3628, allocations: 1.226 MB / 0.5538 GB, free: 4.719 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.3628, allocations: 7.984 kB / 0.5539 GB, free: 4.711 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.3629, allocations: 8 kB / 0.5539 GB, free: 4.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.404e-05/0.3629, allocations: 11.94 kB / 0.5539 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004615/0.3633, allocations: 136.1 kB / 0.554 GB, free: 4.559 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/0.3633, allocations: 11.98 kB / 0.554 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002525/0.3636, allocations: 59.52 kB / 0.5541 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.078e-05/0.3636, allocations: 32 kB / 0.5541 GB, free: 4.457 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) \"Minimum quality of life\" type: Real min_dPop:DISCRETE(unit = \"1/yr\" fixed = true ) \"Minimal derivative of population\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_QL,min_dPop,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 (89): * Single equations (assignments): 89 * 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.0005191/0.3642, allocations: 377.4 kB / 0.5545 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.3643, allocations: 147 kB / 0.5546 GB, free: 3.934 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001575/0.3659, allocations: 1.239 MB / 0.5558 GB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/0.3659, allocations: 19.88 kB / 0.5558 GB, free: 2.668 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.3659, allocations: 0 / 0.5558 GB, free: 2.668 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.3659, allocations: 3.984 kB / 0.5558 GB, free: 2.664 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002818/0.3687, allocations: 2.327 MB / 0.5581 GB, free: 288 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3687, allocations: 0 / 0.5581 GB, free: 288 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004317/0.3692, allocations: 111.8 kB / 0.5582 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-05/0.3692, allocations: 11.92 kB / 0.5582 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.383e-05/0.3692, allocations: 12 kB / 0.5582 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.3692, allocations: 4 kB / 0.5582 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3692, allocations: 0 / 0.5582 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002195/0.3714, allocations: 1.941 MB / 0.5601 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003085/0.3717, allocations: 190.7 kB / 0.5603 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.29e-05/0.3718, allocations: 15.98 kB / 0.5603 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002258/0.372, allocations: 15.94 kB / 0.5603 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.46e-05/0.3721, allocations: 48.56 kB / 0.5604 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.151e-05/0.3721, allocations: 16 kB / 0.5604 GB, free: 13.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001031/0.3732, allocations: 0.9008 MB / 0.5613 GB, free: 13 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3732, allocations: 0 / 0.5613 GB, free: 13 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005582/0.3737, allocations: 215.2 kB / 0.5615 GB, free: 12.79 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002533/0.3763, allocations: 2.514 MB / 0.5639 GB, free: 10.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001229/0.3775, allocations: 0.9893 MB / 0.5649 GB, free: 9.258 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3775, allocations: 0 / 0.5649 GB, free: 9.258 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005961/0.3781, allocations: 0.5073 MB / 0.5654 GB, free: 8.754 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00058/0.3787, allocations: 91.31 kB / 0.5655 GB, free: 8.672 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01603/0.3947, allocations: 11.71 MB / 0.5769 GB, free: 12.77 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009344/0.3956, allocations: 0.7293 MB / 0.5777 GB, free: 12.01 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00027/0.3959, allocations: 80.55 kB / 0.5777 GB, free: 11.93 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006757/0.3966, allocations: 0.593 MB / 0.5783 GB, free: 11.34 MB / 430.1 MB Notification: Performance of SimCode: time 1.272e-06/0.3966, allocations: 0 / 0.5783 GB, free: 11.34 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05837/0.455, allocations: 19.36 MB / 0.5972 GB, free: 8.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/12.04, allocations: 7.984 kB / 0.5972 GB, free: 8.082 MB / 446.1 MB " [Timeout remaining time 648] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6_fmu --startTime=1900 --stopTime=2100 --stepSize=0.08 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_6.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.765276814810932] Failed to read output from testmodel.py, exit status != 0: 12.151625200174749 12.167113026 11.824111586 Calling exit ...