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.001224/0.001224, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001377/0.001377, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8973/0.8973, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.1156/0.1156, allocations: 21.79 MB / 281 MB, free: 7.398 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 417.8 MB, free: 9.363 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.207e-05/1.399e-05, allocations: 2.281 kB / 417.8 MB, free: 9.359 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.002587/0.002601, allocations: 2.746 MB / 420.5 MB, free: 6.605 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.003663, allocations: 0.5298 MB / 421.1 MB, free: 6.074 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002419/0.003905, allocations: 12 kB / 421.1 MB, free: 6.062 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002277/0.004133, allocations: 142.6 kB / 421.2 MB, free: 5.922 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002483/0.004381, allocations: 134.9 kB / 421.3 MB, free: 5.789 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004585/0.00484, allocations: 291.5 kB / 421.6 MB, free: 5.504 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004425/0.005282, allocations: 0.7316 MB / 422.4 MB, free: 4.77 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003794/0.005662, allocations: 353.6 kB / 422.7 MB, free: 4.398 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002588/0.00592, allocations: 450.9 kB / 423.1 MB, free: 3.957 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001864/0.006107, allocations: 282.9 kB / 423.4 MB, free: 3.68 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 8.722e-05/0.006194, allocations: 76 kB / 423.5 MB, free: 3.605 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001628/0.006357, allocations: 103.9 kB / 423.6 MB, free: 3.504 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002429/0.0066, allocations: 450.4 kB / 424 MB, free: 3.062 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000167/0.006767, allocations: 306.7 kB / 424.3 MB, free: 2.762 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007178/0.007485, allocations: 1.101 MB / 425.4 MB, free: 1.656 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.007486, allocations: 0 / 425.4 MB, free: 1.656 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.007488, allocations: 4 kB / 425.4 MB, free: 1.652 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.711e-05/0.007505, allocations: 0 / 425.4 MB, free: 1.652 MB / 394.7 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.001365/0.00887, allocations: 1.68 MB / 427.1 MB, free: 15.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.008906, allocations: 12.03 kB / 427.1 MB, free: 15.92 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001607/0.009067, allocations: 178.8 kB / 427.3 MB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.009207, allocations: 199.6 kB / 427.5 MB, free: 15.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003074/0.009515, allocations: 0.5259 MB / 428 MB, free: 14.97 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.155e-05/0.009566, allocations: 78.39 kB / 428.1 MB, free: 14.89 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.267e-05/0.009639, allocations: 96.38 kB / 428.2 MB, free: 14.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001/0.01064, allocations: 1.091 MB / 429.3 MB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.01066, allocations: 192 / 429.3 MB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.879e-05/0.0107, allocations: 44.38 kB / 429.3 MB, free: 13.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.254e-05/0.01074, allocations: 62.23 kB / 429.4 MB, free: 13.57 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001091/0.01183, allocations: 1.219 MB / 430.6 MB, free: 12.35 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00273/0.01456, allocations: 2.621 MB / 433.2 MB, free: 9.652 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009876/0.01555, allocations: 0.9837 MB / 434.2 MB, free: 8.656 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004002/0.01595, allocations: 494.6 kB / 434.7 MB, free: 8.172 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.359e-05/0.016, allocations: 32.58 kB / 434.7 MB, free: 8.141 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.912e-05/0.01602, allocations: 43.16 kB / 434.8 MB, free: 8.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 1.783e-06/0.01602, allocations: 4 kB / 434.8 MB, free: 8.086 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.001462/0.01749, allocations: 1.586 MB / 436.4 MB, free: 6.492 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.343e-05/0.01752, allocations: 64.06 kB / 436.4 MB, free: 6.418 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000868/0.01839, allocations: 1.27 MB / 437.7 MB, free: 5.137 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.642e-05/0.01841, allocations: 37.7 kB / 437.7 MB, free: 5.094 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003764/0.01879, allocations: 0.7952 MB / 438.5 MB, free: 4.289 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.01891, allocations: 237.9 kB / 438.8 MB, free: 4.055 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.01902, allocations: 130.6 kB / 438.9 MB, free: 3.918 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.632e-05/0.01911, allocations: 337.9 kB / 439.2 MB, free: 3.582 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006571/0.01977, allocations: 473.7 kB / 439.7 MB, free: 3.121 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004849/0.02026, allocations: 0.656 MB / 440.3 MB, free: 2.391 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002274/0.02253, allocations: 2.133 MB / 442.5 MB, free: 184 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.02253, allocations: 0 / 442.5 MB, free: 184 kB / 410.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.1805/0.203, allocations: 1.344 MB / 443.8 MB, free: 63.67 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.03e-05/0.203, allocations: 6.75 kB / 443.8 MB, free: 63.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.203, allocations: 6.438 kB / 443.8 MB, free: 63.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.522e-05/0.2031, allocations: 10 kB / 443.8 MB, free: 63.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000333/0.2034, allocations: 176.7 kB / 444 MB, free: 63.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.2034, allocations: 19.14 kB / 444 MB, free: 63.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/0.2036, allocations: 83.02 kB / 444.1 MB, free: 63.65 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.883e-05/0.2037, allocations: 36.22 kB / 444.1 MB, free: 63.65 MB / 410.7 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.0006038/0.2043, allocations: 391.4 kB / 444.5 MB, free: 63.53 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.537e-05/0.2044, allocations: 144.8 kB / 444.7 MB, free: 63.53 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001058/0.2054, allocations: 1.249 MB / 445.9 MB, free: 63.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.2054, allocations: 8.469 kB / 445.9 MB, free: 63.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.2054, allocations: 0 / 445.9 MB, free: 63.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.2055, allocations: 3.516 kB / 445.9 MB, free: 63.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001742/0.2072, allocations: 2.298 MB / 448.2 MB, free: 62.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2072, allocations: 3.609 kB / 448.2 MB, free: 62.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002755/0.2075, allocations: 120.6 kB / 448.3 MB, free: 62.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.139e-06/0.2075, allocations: 7.188 kB / 448.3 MB, free: 62.67 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.2075, allocations: 21.67 kB / 448.4 MB, free: 62.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.2075, allocations: 0 / 448.4 MB, free: 62.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2075, allocations: 0 / 448.4 MB, free: 62.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001328/0.2088, allocations: 1.948 MB / 450.3 MB, free: 62.08 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.725e-05/0.2089, allocations: 128.3 kB / 450.4 MB, free: 62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.521e-05/0.209, allocations: 14.55 kB / 450.5 MB, free: 61.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.2091, allocations: 25.84 kB / 450.5 MB, free: 61.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.266e-05/0.2092, allocations: 48.48 kB / 450.5 MB, free: 61.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-05/0.2092, allocations: 28.19 kB / 450.6 MB, free: 61.97 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005805/0.2098, allocations: 0.8711 MB / 451.4 MB, free: 61.67 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2098, allocations: 0 / 451.4 MB, free: 61.67 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000559/0.2103, allocations: 219.9 kB / 451.6 MB, free: 61.62 MB / 410.7 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.001554/0.2119, allocations: 2.515 MB / 454.2 MB, free: 60.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009403/0.2128, allocations: 1.066 MB / 455.2 MB, free: 60.25 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2128, allocations: 3.562 kB / 455.2 MB, free: 60.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003723/0.2132, allocations: 0.5262 MB / 455.8 MB, free: 60.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.2135, allocations: 71.45 kB / 455.8 MB, free: 60.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009568/0.2231, allocations: 11.72 MB / 467.5 MB, free: 55.23 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004916/0.2236, allocations: 0.7045 MB / 468.2 MB, free: 55.06 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002597/0.2238, allocations: 122.7 kB / 468.4 MB, free: 55.03 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003475/0.2242, allocations: 0.5861 MB / 469 MB, free: 54.54 MB / 410.7 MB Notification: Performance of SimCode: time 1.613e-06/0.2242, allocations: 0 / 469 MB, free: 54.54 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04384/0.268, allocations: 18.75 MB / 487.7 MB, free: 52.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.75/8.018, allocations: 3.984 kB / 487.7 MB, free: 52.21 MB / 410.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5_res.csv --start-time 0 --stop-time 233 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 0.0932 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: 10.041915390640497] Failed to read output from testmodel.py, exit status != 0: 8.111312442459166 8.119619856 8.110666775 Calling exit ...