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.001768/0.001768, 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.002208/0.002208, allocations: 216.5 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.563/1.563, allocations: 230.6 MB / 256 MB, free: 8.023 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.206/0.206, allocations: 29.22 MB / 341.7 MB, free: 5.82 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.002112/0.002112, allocations: 67.89 kB / 478.4 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3475/0.3496, allocations: 60.79 MB / 0.5266 GB, free: 8.004 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.004101/0.3537, allocations: 3.265 MB / 0.5298 GB, free: 5.621 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.3549, allocations: 0.5323 MB / 0.5303 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003101/0.3552, allocations: 11.66 kB / 0.5303 GB, free: 5.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003105/0.3555, allocations: 148.6 kB / 0.5305 GB, free: 5.145 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002898/0.3558, allocations: 126.9 kB / 0.5306 GB, free: 5.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005823/0.3564, allocations: 289.7 kB / 0.5309 GB, free: 4.922 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006907/0.3571, allocations: 0.7146 MB / 0.5315 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005323/0.3576, allocations: 385 kB / 0.5319 GB, free: 4.371 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002469/0.3578, allocations: 324.2 kB / 0.5322 GB, free: 4.191 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003105/0.3582, allocations: 396.1 kB / 0.5326 GB, free: 3.961 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001164/0.3583, allocations: 76.09 kB / 0.5327 GB, free: 3.961 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001968/0.3585, allocations: 112.2 kB / 0.5328 GB, free: 3.945 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003363/0.3588, allocations: 442.2 kB / 0.5332 GB, free: 3.746 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003021/0.3591, allocations: 0.5743 MB / 0.5338 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001177/0.3603, allocations: 1.141 MB / 0.5349 GB, free: 2.691 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3603, allocations: 0 / 0.5349 GB, free: 2.691 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3603, allocations: 5.094 kB / 0.5349 GB, free: 2.688 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.242e-05/0.3603, allocations: 0 / 0.5349 GB, free: 2.688 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.00208/0.3624, allocations: 1.699 MB / 0.5365 GB, free: 1.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.3624, allocations: 11.17 kB / 0.5366 GB, free: 1.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001819/0.3626, allocations: 181 kB / 0.5367 GB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000176/0.3628, allocations: 197.8 kB / 0.5369 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003679/0.3632, allocations: 0.5241 MB / 0.5374 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.087e-05/0.3632, allocations: 79.64 kB / 0.5375 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.926e-05/0.3633, allocations: 101 kB / 0.5376 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.3648, allocations: 1.097 MB / 0.5387 GB, free: 216 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.596e-05/0.3648, allocations: 3.938 kB / 0.5387 GB, free: 212 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.388e-05/0.3648, allocations: 41.62 kB / 0.5387 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.516e-05/0.3649, allocations: 52.92 kB / 0.5388 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001807/0.3667, allocations: 1.22 MB / 0.54 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004472/0.3712, allocations: 2.802 MB / 0.5427 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/0.3726, allocations: 0.9737 MB / 0.5436 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006833/0.3732, allocations: 490.2 kB / 0.5441 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.906e-05/0.3733, allocations: 32.56 kB / 0.5441 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.3734, allocations: 41.69 kB / 0.5442 GB, free: 13.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.024e-06/0.3734, allocations: 4 kB / 0.5442 GB, free: 13.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.002409/0.3758, allocations: 1.589 MB / 0.5457 GB, free: 12.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.943e-05/0.3758, allocations: 66.72 kB / 0.5458 GB, free: 12.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00159/0.3774, allocations: 1.258 MB / 0.547 GB, free: 12.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.276e-05/0.3775, allocations: 40.05 kB / 0.5471 GB, free: 12.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006682/0.3781, allocations: 0.7918 MB / 0.5478 GB, free: 11.36 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002324/0.3784, allocations: 253.8 kB / 0.5481 GB, free: 11.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001767/0.3785, allocations: 130.6 kB / 0.5482 GB, free: 10.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.3787, allocations: 334 kB / 0.5485 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006888/0.3794, allocations: 477.7 kB / 0.549 GB, free: 10.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008524/0.3803, allocations: 0.6521 MB / 0.5496 GB, free: 9.457 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004395/0.3846, allocations: 2.133 MB / 0.5517 GB, free: 7.246 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.3847, allocations: 4 kB / 0.5517 GB, free: 7.242 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002138/0.3868, allocations: 1.343 MB / 0.553 GB, free: 5.891 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.3868, allocations: 8 kB / 0.553 GB, free: 5.883 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.3868, allocations: 4 kB / 0.553 GB, free: 5.879 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.21e-05/0.3868, allocations: 8 kB / 0.553 GB, free: 5.871 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005889/0.3874, allocations: 179.7 kB / 0.5532 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.683e-05/0.3874, allocations: 16.34 kB / 0.5532 GB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003658/0.3878, allocations: 87.48 kB / 0.5533 GB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.757e-05/0.3879, allocations: 36 kB / 0.5533 GB, free: 5.559 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.0007906/0.3887, allocations: 394.9 kB / 0.5537 GB, free: 5.168 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002717/0.3889, allocations: 147.1 kB / 0.5539 GB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001895/0.3908, allocations: 1.249 MB / 0.5551 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.3908, allocations: 4 kB / 0.5551 GB, free: 3.758 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3908, allocations: 0 / 0.5551 GB, free: 3.758 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.3908, allocations: 7.984 kB / 0.5551 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003188/0.394, allocations: 2.353 MB / 0.5574 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.394, allocations: 3.938 kB / 0.5574 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005112/0.3946, allocations: 127.8 kB / 0.5575 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.675e-06/0.3946, allocations: 4 kB / 0.5575 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.746e-05/0.3946, allocations: 16 kB / 0.5575 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.231e-06/0.3946, allocations: 4 kB / 0.5575 GB, free: 1.191 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.3946, allocations: 3.984 kB / 0.5575 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002546/0.3972, allocations: 1.949 MB / 0.5594 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/0.3973, allocations: 127 kB / 0.5596 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.192e-05/0.3974, allocations: 16.12 kB / 0.5596 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/0.3977, allocations: 23.97 kB / 0.5596 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.3978, allocations: 52.56 kB / 0.5597 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.096e-05/0.3978, allocations: 23.98 kB / 0.5597 GB, free: 14.97 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001207/0.399, allocations: 0.8754 MB / 0.5605 GB, free: 14.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.399, allocations: 0 / 0.5605 GB, free: 14.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006392/0.3997, allocations: 219.2 kB / 0.5607 GB, free: 13.88 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.003282/0.4029, allocations: 2.51 MB / 0.5632 GB, free: 11.34 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001638/0.4046, allocations: 1.06 MB / 0.5642 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.4046, allocations: 1.438 kB / 0.5642 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007703/0.4054, allocations: 0.5385 MB / 0.5648 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.0004595/0.4058, allocations: 61.14 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.01684/0.4226, allocations: 11.7 MB / 0.5762 GB, free: 13.73 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001144/0.4238, allocations: 1.299 MB / 0.5775 GB, free: 12.4 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000387/0.4242, allocations: 124.5 kB / 0.5776 GB, free: 12.27 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007702/0.425, allocations: 0.5813 MB / 0.5782 GB, free: 11.69 MB / 430.1 MB Notification: Performance of SimCode: time 9.22e-07/0.425, allocations: 0 / 0.5782 GB, free: 11.69 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05991/0.4849, allocations: 18.91 MB / 0.5967 GB, free: 8.867 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.21/14.69, allocations: 13.84 kB / 0.5967 GB, free: 8.859 MB / 446.1 MB " [Timeout remaining time 645] (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: 17.727111721000256] Failed to read output from testmodel.py, exit status != 0: 14.807661006998387 14.824469024 14.460826167 Calling exit ...