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.00131/0.00131, allocations: 101.3 kB / 19.73 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.001548/0.001548, allocations: 218.8 kB / 23.03 MB, free: 4.949 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.346/1.346, 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.1775/0.1775, allocations: 29.22 MB / 342.4 MB, free: 5.586 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.001911/0.001911, allocations: 67.84 kB / 479.1 MB, free: 352 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3243/0.3262, allocations: 60.8 MB / 0.5273 GB, free: 7.832 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.003897/0.3301, allocations: 2.741 MB / 0.53 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.3315, allocations: 0.53 MB / 0.5305 GB, free: 5.609 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002659/0.3318, allocations: 14.72 kB / 0.5305 GB, free: 5.605 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003503/0.3321, allocations: 145.4 kB / 0.5306 GB, free: 5.523 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003287/0.3325, allocations: 126.4 kB / 0.5308 GB, free: 5.449 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007092/0.3332, allocations: 285.8 kB / 0.531 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006623/0.3338, allocations: 0.7233 MB / 0.5317 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005163/0.3343, allocations: 377.4 kB / 0.5321 GB, free: 4.754 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002375/0.3346, allocations: 320.2 kB / 0.5324 GB, free: 4.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003199/0.3349, allocations: 403.8 kB / 0.5328 GB, free: 4.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.335, allocations: 75.56 kB / 0.5329 GB, free: 4.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001978/0.3352, allocations: 114 kB / 0.533 GB, free: 4.324 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003716/0.3356, allocations: 435.1 kB / 0.5334 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003006/0.3359, allocations: 449.8 kB / 0.5338 GB, free: 3.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001186/0.3371, allocations: 1.158 MB / 0.5349 GB, free: 3.215 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3371, allocations: 4 kB / 0.5349 GB, free: 3.211 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3371, allocations: 0 / 0.5349 GB, free: 3.211 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.622e-05/0.3371, allocations: 1.062 kB / 0.5349 GB, free: 3.211 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.001928/0.339, allocations: 1.702 MB / 0.5366 GB, free: 2.016 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.3391, allocations: 10.16 kB / 0.5366 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.373e-05/0.3391, allocations: 39.19 kB / 0.5367 GB, free: 2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001647/0.3393, allocations: 176.3 kB / 0.5368 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001957/0.3395, allocations: 199.9 kB / 0.537 GB, free: 1.742 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003539/0.3399, allocations: 0.5312 MB / 0.5375 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.713e-05/0.3399, allocations: 76.56 kB / 0.5376 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.34, allocations: 99.84 kB / 0.5377 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/0.3415, allocations: 1.117 MB / 0.5388 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.136e-05/0.3416, allocations: 0 / 0.5388 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.769e-05/0.3416, allocations: 41.12 kB / 0.5388 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.619e-05/0.3417, allocations: 55.19 kB / 0.5389 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001571/0.3433, allocations: 1.244 MB / 0.5401 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004199/0.3475, allocations: 2.649 MB / 0.5427 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001375/0.3488, allocations: 0.9984 MB / 0.5437 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006777/0.3495, allocations: 0.5036 MB / 0.5442 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.744e-05/0.3496, allocations: 29.3 kB / 0.5442 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.746e-05/0.3496, allocations: 39.12 kB / 0.5442 GB, free: 14.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 3.376e-06/0.3496, allocations: 3.938 kB / 0.5442 GB, free: 14.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=96): time 0.009635/0.3593, allocations: 5.461 MB / 0.5496 GB, free: 10.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.692e-05/0.3593, allocations: 60.41 kB / 0.5496 GB, free: 9.992 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001588/0.3609, allocations: 1.266 MB / 0.5508 GB, free: 8.715 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.576e-05/0.361, allocations: 41.7 kB / 0.5509 GB, free: 8.668 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006786/0.3616, allocations: 0.7916 MB / 0.5517 GB, free: 7.867 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003111/0.362, allocations: 356.9 kB / 0.552 GB, free: 7.516 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002613/0.3622, allocations: 178.6 kB / 0.5522 GB, free: 7.336 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.3624, allocations: 341.9 kB / 0.5525 GB, free: 6.996 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009206/0.3633, allocations: 0.6422 MB / 0.5531 GB, free: 6.355 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001102/0.3644, allocations: 0.8438 MB / 0.5539 GB, free: 5.434 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008308/0.3727, allocations: 3.711 MB / 0.5576 GB, free: 1.648 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.3727, allocations: 0 / 0.5576 GB, free: 1.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002659/0.3754, allocations: 1.781 MB / 0.5593 GB, free: 15.86 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.3754, allocations: 11.94 kB / 0.5593 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.3754, allocations: 7.938 kB / 0.5593 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.699e-05/0.3754, allocations: 12 kB / 0.5593 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007936/0.3762, allocations: 244.3 kB / 0.5596 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.281e-05/0.3763, allocations: 19.94 kB / 0.5596 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004027/0.3767, allocations: 39.97 kB / 0.5596 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/0.3768, allocations: 63.98 kB / 0.5597 GB, free: 15.46 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.000825/0.3776, allocations: 414.6 kB / 0.5601 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001897/0.3778, allocations: 154.9 kB / 0.5602 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002787/0.3806, allocations: 1.814 MB / 0.562 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.3806, allocations: 12 kB / 0.562 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.3806, allocations: 0 / 0.562 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.3806, allocations: 3.984 kB / 0.562 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004333/0.3849, allocations: 3.036 MB / 0.565 GB, free: 9.977 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.3849, allocations: 4 kB / 0.565 GB, free: 9.973 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007434/0.3857, allocations: 191.7 kB / 0.5652 GB, free: 9.785 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.836e-06/0.3857, allocations: 7.938 kB / 0.5652 GB, free: 9.777 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.478e-05/0.3857, allocations: 24 kB / 0.5652 GB, free: 9.754 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.3858, allocations: 4 kB / 0.5652 GB, free: 9.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3858, allocations: 3.984 kB / 0.5652 GB, free: 9.746 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00353/0.3893, allocations: 2.696 MB / 0.5678 GB, free: 7.031 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001733/0.3895, allocations: 127 kB / 0.568 GB, free: 6.906 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.998e-05/0.3896, allocations: 16.06 kB / 0.568 GB, free: 6.891 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003178/0.3899, allocations: 27.98 kB / 0.568 GB, free: 6.863 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.39, allocations: 72.88 kB / 0.5681 GB, free: 6.793 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.256e-05/0.3901, allocations: 51.98 kB / 0.5681 GB, free: 6.742 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001142/0.3912, allocations: 0.8716 MB / 0.569 GB, free: 5.871 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3912, allocations: 0 / 0.569 GB, free: 5.871 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006376/0.3919, allocations: 188 kB / 0.5692 GB, free: 5.688 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.003916/0.3958, allocations: 3.283 MB / 0.5724 GB, free: 2.367 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00214/0.3979, allocations: 1.47 MB / 0.5738 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3979, allocations: 0 / 0.5738 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009775/0.3989, allocations: 0.7552 MB / 0.5745 GB, free: 152 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005442/0.3995, allocations: 69.16 kB / 0.5746 GB, free: 80 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01887/0.4183, allocations: 13.57 MB / 0.5879 GB, free: 2.254 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008501/0.4192, allocations: 0.7462 MB / 0.5886 GB, free: 1.477 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005621/0.4197, allocations: 189 kB / 0.5888 GB, free: 1.293 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008444/0.4206, allocations: 0.6516 MB / 0.5894 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4206, allocations: 4 kB / 0.5894 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05291/0.4735, allocations: 21.74 MB / 0.6106 GB, free: 11.04 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/13.51, allocations: 14.64 kB / 0.6107 GB, free: 11.03 MB / 462.1 MB " [Timeout remaining time 646] (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.25738217192702] Failed to read output from testmodel.py, exit status != 0: 13.6917011939222 13.706886432 13.366588691 Calling exit ...