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.001324/0.001324, allocations: 114.3 kB / 18.94 MB, free: 2.934 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: 217.4 kB / 22.25 MB, free: 5.078 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.436/1.436, allocations: 230.6 MB / 256 MB, free: 8.008 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.1967/0.1967, allocations: 29.24 MB / 341.7 MB, free: 5.801 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.001991/0.001991, allocations: 75.89 kB / 478.4 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.3054, allocations: 60.8 MB / 0.5266 GB, free: 7.988 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.003839/0.3092, allocations: 3.261 MB / 0.5298 GB, free: 5.605 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001127/0.3103, allocations: 0.5322 MB / 0.5303 GB, free: 5.215 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002308/0.3106, allocations: 11.59 kB / 0.5303 GB, free: 5.215 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002767/0.3108, allocations: 149.9 kB / 0.5305 GB, free: 5.129 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002658/0.3111, allocations: 130.6 kB / 0.5306 GB, free: 5.051 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007116/0.3118, allocations: 281.2 kB / 0.5308 GB, free: 4.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005673/0.3124, allocations: 0.7238 MB / 0.5316 GB, free: 4.594 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004416/0.3128, allocations: 384.8 kB / 0.5319 GB, free: 4.352 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002311/0.313, allocations: 316.3 kB / 0.5322 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002808/0.3133, allocations: 403.8 kB / 0.5326 GB, free: 3.941 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001082/0.3134, allocations: 75.41 kB / 0.5327 GB, free: 3.941 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001719/0.3136, allocations: 100.8 kB / 0.5328 GB, free: 3.938 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004435/0.314, allocations: 441.4 kB / 0.5332 GB, free: 3.738 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002929/0.3143, allocations: 0.5821 MB / 0.5338 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009944/0.3153, allocations: 1.141 MB / 0.5349 GB, free: 2.676 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3153, allocations: 0.5625 kB / 0.5349 GB, free: 2.676 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3153, allocations: 4.906 kB / 0.5349 GB, free: 2.672 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.625e-05/0.3154, allocations: 4 kB / 0.5349 GB, free: 2.668 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.001811/0.3172, allocations: 1.7 MB / 0.5365 GB, free: 1.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.3172, allocations: 9.969 kB / 0.5366 GB, free: 1.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001568/0.3174, allocations: 171.9 kB / 0.5367 GB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001503/0.3175, allocations: 200.2 kB / 0.5369 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003442/0.3179, allocations: 0.5259 MB / 0.5374 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002218/0.3181, allocations: 75.64 kB / 0.5375 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.511e-05/0.3182, allocations: 102.4 kB / 0.5376 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.3195, allocations: 1.093 MB / 0.5387 GB, free: 208 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.654e-05/0.3195, allocations: 3.938 kB / 0.5387 GB, free: 204 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.882e-05/0.3195, allocations: 40.44 kB / 0.5387 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.388e-05/0.3196, allocations: 59.11 kB / 0.5388 GB, free: 160 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001692/0.3213, allocations: 1.218 MB / 0.54 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004103/0.3254, allocations: 2.804 MB / 0.5427 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0014/0.3268, allocations: 0.9771 MB / 0.5436 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006623/0.3274, allocations: 494.4 kB / 0.5441 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.054e-05/0.3275, allocations: 24.11 kB / 0.5441 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.3275, allocations: 45.72 kB / 0.5442 GB, free: 13.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 1.794e-06/0.3275, allocations: 0 / 0.5442 GB, free: 13.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.002179/0.3297, allocations: 1.593 MB / 0.5457 GB, free: 12.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.35e-05/0.3298, allocations: 66.64 kB / 0.5458 GB, free: 12.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001531/0.3313, allocations: 1.259 MB / 0.547 GB, free: 12.1 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.093e-05/0.3313, allocations: 36.02 kB / 0.5471 GB, free: 12.06 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006488/0.332, allocations: 0.7988 MB / 0.5478 GB, free: 11.35 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001988/0.3322, allocations: 245.9 kB / 0.5481 GB, free: 11.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001671/0.3324, allocations: 130.6 kB / 0.5482 GB, free: 10.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.3325, allocations: 334 kB / 0.5485 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008068/0.3333, allocations: 481.7 kB / 0.549 GB, free: 10.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008125/0.3341, allocations: 0.656 MB / 0.5496 GB, free: 9.445 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004195/0.3383, allocations: 2.121 MB / 0.5517 GB, free: 7.246 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-06/0.3383, allocations: 4 kB / 0.5517 GB, free: 7.242 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002016/0.3404, allocations: 1.347 MB / 0.553 GB, free: 5.887 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.3404, allocations: 8 kB / 0.553 GB, free: 5.879 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.3404, allocations: 4 kB / 0.553 GB, free: 5.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.3404, allocations: 8 kB / 0.553 GB, free: 5.867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005562/0.341, allocations: 183.7 kB / 0.5532 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.398e-05/0.341, allocations: 8 kB / 0.5532 GB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003396/0.3413, allocations: 87.89 kB / 0.5533 GB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.176e-05/0.3414, allocations: 32 kB / 0.5533 GB, free: 5.562 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.0007692/0.3421, allocations: 395.2 kB / 0.5537 GB, free: 5.168 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001641/0.3423, allocations: 147 kB / 0.5538 GB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001859/0.3442, allocations: 1.261 MB / 0.5551 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.3442, allocations: 4 kB / 0.5551 GB, free: 3.746 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.3442, allocations: 4 kB / 0.5551 GB, free: 3.742 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.3442, allocations: 3.984 kB / 0.5551 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003256/0.3474, allocations: 2.353 MB / 0.5574 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3474, allocations: 7.875 kB / 0.5574 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005364/0.348, allocations: 119.9 kB / 0.5575 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.348, allocations: 4 kB / 0.5575 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.922e-05/0.348, allocations: 19.98 kB / 0.5575 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.943e-06/0.348, allocations: 8 kB / 0.5575 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.348, allocations: 0 / 0.5575 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002538/0.3506, allocations: 1.949 MB / 0.5594 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001752/0.3507, allocations: 122.9 kB / 0.5596 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.593e-05/0.3508, allocations: 12.06 kB / 0.5596 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/0.3511, allocations: 23.97 kB / 0.5596 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.914e-05/0.3512, allocations: 52.56 kB / 0.5596 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.42e-05/0.3512, allocations: 20 kB / 0.5597 GB, free: 14.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001139/0.3523, allocations: 0.8754 MB / 0.5605 GB, free: 14.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3523, allocations: 0 / 0.5605 GB, free: 14.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005966/0.3529, allocations: 219.2 kB / 0.5607 GB, free: 13.89 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.003052/0.356, allocations: 2.517 MB / 0.5632 GB, free: 11.34 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00151/0.3575, allocations: 1.064 MB / 0.5642 GB, free: 10.28 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3575, allocations: 0 / 0.5642 GB, free: 10.28 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008035/0.3583, allocations: 0.5359 MB / 0.5647 GB, free: 9.746 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004426/0.3588, allocations: 61.16 kB / 0.5648 GB, free: 9.688 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01627/0.375, allocations: 11.69 MB / 0.5762 GB, free: 13.74 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001196/0.3762, allocations: 1.303 MB / 0.5775 GB, free: 12.4 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000345/0.3766, allocations: 120.3 kB / 0.5776 GB, free: 12.28 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006629/0.3772, allocations: 0.5852 MB / 0.5782 GB, free: 11.69 MB / 430.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3772, allocations: 0 / 0.5782 GB, free: 11.69 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06259/0.4398, allocations: 18.91 MB / 0.5967 GB, free: 8.871 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/13.86, allocations: 10.52 kB / 0.5967 GB, free: 8.863 MB / 446.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.610522598959506] Failed to read output from testmodel.py, exit status != 0: 13.971839932026342 13.989132527 13.670674233 Calling exit ...