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.001751/0.001751, allocations: 98.08 kB / 19.73 MB, free: 2.23 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.002126/0.002126, allocations: 219.8 kB / 23.04 MB, free: 5.074 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.39/1.39, allocations: 230.6 MB / 256.8 MB, free: 8.004 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.1824/0.1824, allocations: 29.22 MB / 342.4 MB, free: 5.785 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_5,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_5",fmuType="cs",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.00185/0.00185, allocations: 67.89 kB / 479.2 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3065, allocations: 60.8 MB / 0.5274 GB, free: 7.977 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.003822/0.3103, allocations: 3.269 MB / 0.5306 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001093/0.3114, allocations: 0.5364 MB / 0.5311 GB, free: 5.191 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002517/0.3117, allocations: 11.88 kB / 0.5311 GB, free: 5.191 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003109/0.312, allocations: 153.2 kB / 0.5312 GB, free: 5.102 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002848/0.3123, allocations: 122.4 kB / 0.5314 GB, free: 5.031 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005973/0.3129, allocations: 288.4 kB / 0.5316 GB, free: 4.883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00063/0.3135, allocations: 0.7194 MB / 0.5323 GB, free: 4.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004867/0.314, allocations: 385 kB / 0.5327 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002407/0.3142, allocations: 315.7 kB / 0.533 GB, free: 4.156 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003076/0.3145, allocations: 401.5 kB / 0.5334 GB, free: 3.922 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001145/0.3146, allocations: 75.41 kB / 0.5335 GB, free: 3.922 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001917/0.3148, allocations: 104.9 kB / 0.5336 GB, free: 3.914 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003363/0.3152, allocations: 444.8 kB / 0.534 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002945/0.3155, allocations: 0.5749 MB / 0.5345 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001029/0.3165, allocations: 1.146 MB / 0.5357 GB, free: 2.652 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3165, allocations: 0 / 0.5357 GB, free: 2.652 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3165, allocations: 0.6094 kB / 0.5357 GB, free: 2.652 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.587e-05/0.3165, allocations: 7.938 kB / 0.5357 GB, free: 2.645 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.001842/0.3184, allocations: 1.695 MB / 0.5373 GB, free: 1.477 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.3184, allocations: 8.906 kB / 0.5373 GB, free: 1.477 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.187e-05/0.3185, allocations: 34.91 kB / 0.5374 GB, free: 1.465 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001609/0.3186, allocations: 177.3 kB / 0.5375 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001859/0.3188, allocations: 200.1 kB / 0.5377 GB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003579/0.3192, allocations: 0.5311 MB / 0.5382 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.539e-05/0.3192, allocations: 80.58 kB / 0.5383 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.3193, allocations: 102.7 kB / 0.5384 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.3207, allocations: 1.117 MB / 0.5395 GB, free: 136 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.3208, allocations: 1.531 kB / 0.5395 GB, free: 136 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.366e-05/0.3208, allocations: 39.69 kB / 0.5395 GB, free: 104 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-05/0.3209, allocations: 59.47 kB / 0.5396 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001724/0.3226, allocations: 1.24 MB / 0.5408 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004114/0.3267, allocations: 2.813 MB / 0.5436 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.3281, allocations: 1.012 MB / 0.5445 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006746/0.3288, allocations: 0.5007 MB / 0.545 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.89e-05/0.3289, allocations: 28.28 kB / 0.5451 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.3289, allocations: 50.7 kB / 0.5451 GB, free: 13.31 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 2.294e-06/0.3289, allocations: 0 / 0.5451 GB, free: 13.31 MB / 398.1 MB Notification: Performance of matching and sorting (n=96): time 0.009439/0.3384, allocations: 5.459 MB / 0.5504 GB, free: 9.438 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.011e-05/0.3384, allocations: 68.41 kB / 0.5505 GB, free: 9.359 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001534/0.34, allocations: 1.262 MB / 0.5517 GB, free: 8.086 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.848e-05/0.34, allocations: 41.7 kB / 0.5518 GB, free: 8.039 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006188/0.3406, allocations: 0.7877 MB / 0.5525 GB, free: 7.242 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002799/0.3409, allocations: 353 kB / 0.5529 GB, free: 6.895 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002416/0.3411, allocations: 174.6 kB / 0.5531 GB, free: 6.715 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.3413, allocations: 349.9 kB / 0.5534 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008822/0.3422, allocations: 0.6383 MB / 0.554 GB, free: 5.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001053/0.3432, allocations: 0.8477 MB / 0.5548 GB, free: 4.809 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007993/0.3512, allocations: 3.711 MB / 0.5585 GB, free: 1.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.3512, allocations: 4 kB / 0.5585 GB, free: 1.016 MB / 398.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.00255/0.3538, allocations: 1.774 MB / 0.5602 GB, free: 15.24 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.3538, allocations: 20.05 kB / 0.5602 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.3538, allocations: 8 kB / 0.5602 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.637e-05/0.3539, allocations: 8 kB / 0.5602 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007671/0.3546, allocations: 239.6 kB / 0.5605 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.756e-05/0.3546, allocations: 11.94 kB / 0.5605 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003761/0.355, allocations: 43.97 kB / 0.5605 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.038e-05/0.3551, allocations: 63.98 kB / 0.5606 GB, free: 14.85 MB / 414.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 $outputAlias_Pop:VARIABLE(start = Population.x0 fixed = true ) \"World population\" type: Real $outputAlias_Pol:VARIABLE(start = Pollution.x0 fixed = true ) \"Pollution\" type: Real $outputAlias_Cap_inv:VARIABLE(start = Capital_Investment.x0 unit = \"dollar\" fixed = true ) \"Capital investment\" type: Real $outputAlias_Nat_res:VARIABLE(start = Natural_Resources.x0 unit = \"ton\" fixed = true ) \"Natural unrecoverable resources\" 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 (126): * Single equations (assignments): 126 * 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.0008072/0.3559, allocations: 414.5 kB / 0.561 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000188/0.3561, allocations: 155 kB / 0.5611 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002663/0.3588, allocations: 1.806 MB / 0.5629 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.3588, allocations: 12 kB / 0.5629 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.3588, allocations: 0 / 0.5629 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.3588, allocations: 3.984 kB / 0.5629 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004133/0.3629, allocations: 3.122 MB / 0.5659 GB, free: 9.277 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.82e-06/0.3629, allocations: 3.984 kB / 0.5659 GB, free: 9.273 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007272/0.3637, allocations: 191.8 kB / 0.5661 GB, free: 9.086 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.3637, allocations: 8 kB / 0.5661 GB, free: 9.078 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.799e-05/0.3637, allocations: 31.92 kB / 0.5662 GB, free: 9.047 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.093e-06/0.3637, allocations: 4 kB / 0.5662 GB, free: 9.043 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3637, allocations: 0 / 0.5662 GB, free: 9.043 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003381/0.3671, allocations: 2.696 MB / 0.5688 GB, free: 6.328 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/0.3673, allocations: 131 kB / 0.5689 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.341e-05/0.3674, allocations: 16 kB / 0.5689 GB, free: 6.184 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003297/0.3677, allocations: 31.97 kB / 0.569 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.3678, allocations: 68.88 kB / 0.569 GB, free: 6.086 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.283e-05/0.3679, allocations: 56 kB / 0.5691 GB, free: 6.031 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001066/0.369, allocations: 0.8677 MB / 0.5699 GB, free: 5.164 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.369, allocations: 0 / 0.5699 GB, free: 5.164 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000619/0.3696, allocations: 195.9 kB / 0.5701 GB, free: 4.973 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,$outputAlias_Pop,$outputAlias_Pol,$outputAlias_Cap_inv,$outputAlias_Nat_res,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 (97): * Single equations (assignments): 97 * 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.003845/0.3734, allocations: 3.279 MB / 0.5733 GB, free: 1.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002063/0.3755, allocations: 1.474 MB / 0.5748 GB, free: 192 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3755, allocations: 0 / 0.5748 GB, free: 192 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009675/0.3765, allocations: 0.7552 MB / 0.5755 GB, free: 15.43 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005007/0.377, allocations: 73.16 kB / 0.5756 GB, free: 15.36 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01745/0.3944, allocations: 13.57 MB / 0.5888 GB, free: 1.539 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009793/0.3954, allocations: 1.331 MB / 0.5901 GB, free: 184 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005408/0.3959, allocations: 189 kB / 0.5903 GB, free: 15.99 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007798/0.3967, allocations: 0.6515 MB / 0.5909 GB, free: 15.34 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3967, allocations: 0 / 0.5909 GB, free: 15.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05058/0.4473, allocations: 22.01 MB / 0.6124 GB, free: 9.434 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.31, allocations: 16.83 kB / 0.6125 GB, free: 9.422 MB / 462.1 MB " [Timeout remaining time 647] (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: 16.131492058979347] Failed to read output from testmodel.py, exit status != 0: 13.482161938096397 13.504256313 13.184674656 Calling exit ...