Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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.001374/0.001374, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001563/0.001563, allocations: 211.7 kB / 22.24 MB, free: 4.855 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.41/1.41, allocations: 230.6 MB / 256 MB, free: 7.809 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.1837/0.1837, allocations: 29.22 MB / 341.7 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: "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",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.00221/0.00221, allocations: 63.91 kB / 478.4 MB, free: 360 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3264, allocations: 60.78 MB / 0.5265 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.003786/0.3302, allocations: 2.751 MB / 0.5292 GB, free: 6.008 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.3312, allocations: 0.5286 MB / 0.5297 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002364/0.3314, allocations: 11.69 kB / 0.5297 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000302/0.3317, allocations: 153.5 kB / 0.5299 GB, free: 5.531 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002858/0.332, allocations: 122.8 kB / 0.53 GB, free: 5.461 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005631/0.3326, allocations: 281 kB / 0.5303 GB, free: 5.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006338/0.3332, allocations: 0.7233 MB / 0.531 GB, free: 5.004 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004783/0.3337, allocations: 356.5 kB / 0.5313 GB, free: 4.789 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002255/0.3339, allocations: 316.7 kB / 0.5316 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002924/0.3342, allocations: 347.8 kB / 0.5319 GB, free: 4.434 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001184/0.3343, allocations: 76.28 kB / 0.532 GB, free: 4.434 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000191/0.3345, allocations: 104.6 kB / 0.5321 GB, free: 4.426 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003411/0.3349, allocations: 445.3 kB / 0.5325 GB, free: 4.223 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002652/0.3351, allocations: 441.5 kB / 0.533 GB, free: 3.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001031/0.3362, allocations: 1.167 MB / 0.5341 GB, free: 3.309 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3362, allocations: 0 / 0.5341 GB, free: 3.309 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3362, allocations: 7.938 kB / 0.5341 GB, free: 3.301 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.3362, allocations: 0 / 0.5341 GB, free: 3.301 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.001814/0.338, allocations: 1.695 MB / 0.5358 GB, free: 2.105 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.338, allocations: 9.625 kB / 0.5358 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001629/0.3382, allocations: 166.7 kB / 0.5359 GB, free: 1.965 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001696/0.3384, allocations: 199.2 kB / 0.5361 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003989/0.3388, allocations: 0.5351 MB / 0.5366 GB, free: 1.398 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.891e-05/0.3388, allocations: 75.52 kB / 0.5367 GB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.3389, allocations: 97.38 kB / 0.5368 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.3403, allocations: 1.093 MB / 0.5379 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.663e-05/0.3404, allocations: 3.938 kB / 0.5379 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.364e-05/0.3404, allocations: 44.8 kB / 0.5379 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.459e-05/0.3405, allocations: 53.89 kB / 0.538 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001532/0.342, allocations: 1.221 MB / 0.5392 GB, free: 316 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003803/0.3458, allocations: 2.639 MB / 0.5417 GB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001342/0.3472, allocations: 0.9604 MB / 0.5427 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006746/0.3478, allocations: 498.7 kB / 0.5432 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.593e-05/0.3479, allocations: 28.05 kB / 0.5432 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/0.3479, allocations: 43.23 kB / 0.5432 GB, free: 14.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.585e-06/0.3479, allocations: 3.938 kB / 0.5432 GB, free: 14.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.002216/0.3502, allocations: 1.593 MB / 0.5448 GB, free: 13.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.55e-05/0.3502, allocations: 58.81 kB / 0.5448 GB, free: 13.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001465/0.3517, allocations: 1.264 MB / 0.5461 GB, free: 12.85 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.157e-05/0.3517, allocations: 40.34 kB / 0.5461 GB, free: 12.8 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006065/0.3523, allocations: 0.798 MB / 0.5469 GB, free: 12.04 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001815/0.3525, allocations: 242.1 kB / 0.5471 GB, free: 11.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.3527, allocations: 126.6 kB / 0.5472 GB, free: 11.67 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.3528, allocations: 338 kB / 0.5476 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006607/0.3535, allocations: 477.7 kB / 0.548 GB, free: 10.87 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007969/0.3543, allocations: 0.6599 MB / 0.5487 GB, free: 10.13 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004002/0.3583, allocations: 2.133 MB / 0.5508 GB, free: 7.918 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.3583, allocations: 4 kB / 0.5508 GB, free: 7.914 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00182/0.3601, allocations: 1.336 MB / 0.5521 GB, free: 6.57 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.3601, allocations: 12 kB / 0.5521 GB, free: 6.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.3601, allocations: 4 kB / 0.5521 GB, free: 6.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.347e-05/0.3601, allocations: 8 kB / 0.5521 GB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005513/0.3607, allocations: 183.7 kB / 0.5523 GB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.586e-05/0.3607, allocations: 11.98 kB / 0.5523 GB, free: 6.355 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003351/0.361, allocations: 87.44 kB / 0.5524 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.169e-05/0.3611, allocations: 32 kB / 0.5524 GB, free: 6.238 MB / 398.1 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) \"Time in calendar years\" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) \"Reversible state variable\" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) \"Reversible state variable\" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) \"Reversible state variable\" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) \"Reversible state variable\" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) \"Reversible state variable\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0006544/0.3618, allocations: 403.2 kB / 0.5528 GB, free: 5.836 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.3619, allocations: 143.1 kB / 0.5529 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001779/0.3637, allocations: 1.261 MB / 0.5541 GB, free: 4.426 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.3637, allocations: 11.94 kB / 0.5541 GB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3637, allocations: 0 / 0.5541 GB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.3637, allocations: 3.984 kB / 0.5542 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002867/0.3666, allocations: 2.29 MB / 0.5564 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-06/0.3666, allocations: 4 kB / 0.5564 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004806/0.3671, allocations: 119.9 kB / 0.5565 GB, free: 1.945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-05/0.3671, allocations: 7.938 kB / 0.5565 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.504e-05/0.3671, allocations: 15.98 kB / 0.5565 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.3671, allocations: 4 kB / 0.5565 GB, free: 1.918 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3671, allocations: 0 / 0.5565 GB, free: 1.918 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002388/0.3695, allocations: 1.953 MB / 0.5584 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001687/0.3697, allocations: 122.9 kB / 0.5586 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.547e-05/0.3697, allocations: 12.06 kB / 0.5586 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000247/0.37, allocations: 23.98 kB / 0.5586 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.3701, allocations: 52.56 kB / 0.5586 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.59e-05/0.3701, allocations: 20 kB / 0.5587 GB, free: 15.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009998/0.3711, allocations: 0.8754 MB / 0.5595 GB, free: 14.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3711, allocations: 0 / 0.5595 GB, free: 14.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005815/0.3717, allocations: 219.2 kB / 0.5597 GB, free: 14.62 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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.002784/0.3745, allocations: 2.518 MB / 0.5622 GB, free: 12.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001551/0.376, allocations: 1.061 MB / 0.5632 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3761, allocations: 0 / 0.5632 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007121/0.3768, allocations: 0.5307 MB / 0.5637 GB, free: 10.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004661/0.3772, allocations: 57.16 kB / 0.5638 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01619/0.3934, allocations: 11.71 MB / 0.5752 GB, free: 14.47 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008731/0.3943, allocations: 0.7129 MB / 0.5759 GB, free: 13.72 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000354/0.3946, allocations: 116.3 kB / 0.576 GB, free: 13.6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000689/0.3953, allocations: 0.5852 MB / 0.5766 GB, free: 13.02 MB / 430.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3953, allocations: 0 / 0.5766 GB, free: 13.02 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05579/0.4511, allocations: 18.68 MB / 0.5949 GB, free: 10.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.87, allocations: 3.938 kB / 0.5949 GB, free: 10.43 MB / 446.1 MB " [Timeout remaining time 648] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5_fmu --startTime=0 --stopTime=233 --stepSize=0.0932 --timeout=50 --tolerance=1e-10 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.640042916871607] Failed to read output from testmodel.py, exit status != 0: 12.001147117000073 12.016561166 11.677311572 Calling exit ...