Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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.001439/0.001439, allocations: 105.4 kB / 16.45 MB, free: 6.449 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.001473/0.001473, allocations: 212 kB / 19.43 MB, free: 3.637 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.429/1.429, allocations: 230.6 MB / 252.8 MB, free: 8.949 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2008/0.2008, allocations: 29.22 MB / 338.1 MB, free: 6.945 MB / 270.1 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-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_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_1,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1",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.001961/0.001961, allocations: 71.89 kB / 473.2 MB, free: 2.898 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3174, allocations: 60.75 MB / 0.5215 GB, free: 7.883 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.004216/0.3216, allocations: 3.637 MB / 0.525 GB, free: 5.211 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001767/0.3234, allocations: 0.6543 MB / 0.5257 GB, free: 4.727 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005759/0.324, allocations: 26.03 kB / 0.5257 GB, free: 4.715 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004286/0.3244, allocations: 162.3 kB / 0.5258 GB, free: 4.613 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003306/0.3247, allocations: 117.8 kB / 0.526 GB, free: 4.535 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008015/0.3255, allocations: 361 kB / 0.5263 GB, free: 4.344 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001011/0.3265, allocations: 0.8284 MB / 0.5271 GB, free: 3.965 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000747/0.3273, allocations: 0.4985 MB / 0.5276 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002981/0.3276, allocations: 341.8 kB / 0.5279 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003284/0.3279, allocations: 431.4 kB / 0.5283 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001292/0.328, allocations: 85.06 kB / 0.5284 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002221/0.3283, allocations: 121.8 kB / 0.5285 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003356/0.3286, allocations: 440.9 kB / 0.529 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000333/0.3289, allocations: 0.5984 MB / 0.5295 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001238/0.3302, allocations: 1.226 MB / 0.5307 GB, free: 1.855 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3302, allocations: 0 / 0.5307 GB, free: 1.855 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3302, allocations: 0 / 0.5307 GB, free: 1.855 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.192e-05/0.3302, allocations: 0 / 0.5307 GB, free: 1.855 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.002002/0.3322, allocations: 1.777 MB / 0.5325 GB, free: 0.582 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.3322, allocations: 9.594 kB / 0.5325 GB, free: 0.582 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001962/0.3324, allocations: 173 kB / 0.5326 GB, free: 476 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002168/0.3327, allocations: 200.8 kB / 0.5328 GB, free: 364 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009244/0.3336, allocations: 0.7599 MB / 0.5336 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.558e-05/0.3337, allocations: 81.53 kB / 0.5337 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001323/0.3338, allocations: 100.4 kB / 0.5338 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001688/0.3355, allocations: 1.151 MB / 0.5349 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.355e-05/0.3355, allocations: 3.938 kB / 0.5349 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.513e-05/0.3356, allocations: 51.2 kB / 0.5349 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.047e-05/0.3356, allocations: 25.38 kB / 0.535 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001408/0.337, allocations: 1.057 MB / 0.536 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005527/0.3425, allocations: 3.609 MB / 0.5395 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001726/0.3443, allocations: 1.243 MB / 0.5407 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005512/0.3448, allocations: 445.9 kB / 0.5411 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.629e-05/0.3449, allocations: 33.02 kB / 0.5412 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.135e-05/0.3449, allocations: 41.56 kB / 0.5412 GB, free: 11.55 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.555e-06/0.3449, allocations: 0 / 0.5412 GB, free: 11.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.00222/0.3471, allocations: 1.454 MB / 0.5426 GB, free: 11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.787e-05/0.3472, allocations: 58.78 kB / 0.5427 GB, free: 10.94 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001969/0.3492, allocations: 1.23 MB / 0.5439 GB, free: 10.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.621e-05/0.3492, allocations: 36.08 kB / 0.5439 GB, free: 10.26 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007606/0.35, allocations: 0.7718 MB / 0.5447 GB, free: 9.582 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002274/0.3502, allocations: 236.1 kB / 0.5449 GB, free: 9.375 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001945/0.3504, allocations: 108.2 kB / 0.545 GB, free: 9.309 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.3506, allocations: 339.5 kB / 0.5453 GB, free: 8.977 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005346/0.3511, allocations: 415.4 kB / 0.5457 GB, free: 8.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005907/0.3517, allocations: 0.4982 MB / 0.5462 GB, free: 8.594 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.3529, allocations: 0.9587 MB / 0.5472 GB, free: 7.695 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3529, allocations: 0 / 0.5472 GB, free: 7.695 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001629/0.3545, allocations: 1.129 MB / 0.5483 GB, free: 6.559 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.3546, allocations: 16.23 kB / 0.5483 GB, free: 6.543 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3546, allocations: 4 kB / 0.5483 GB, free: 6.539 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.8e-05/0.3546, allocations: 8 kB / 0.5483 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004669/0.3551, allocations: 127.8 kB / 0.5484 GB, free: 6.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.3551, allocations: 7.938 kB / 0.5484 GB, free: 6.398 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003283/0.3554, allocations: 59.52 kB / 0.5485 GB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.309e-05/0.3555, allocations: 27.98 kB / 0.5485 GB, free: 6.312 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (CIAF.Integrator1.local_reset,Pollution.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Population.Integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 81 * 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.0007049/0.3562, allocations: 357.5 kB / 0.5488 GB, free: 5.953 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001851/0.3564, allocations: 139.1 kB / 0.549 GB, free: 5.816 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001604/0.358, allocations: 1.146 MB / 0.5501 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.358, allocations: 12 kB / 0.5501 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.358, allocations: 3.984 kB / 0.5501 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.358, allocations: 0 / 0.5501 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002889/0.3609, allocations: 2.273 MB / 0.5523 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3609, allocations: 4 kB / 0.5523 GB, free: 2.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004615/0.3613, allocations: 107.9 kB / 0.5524 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-05/0.3613, allocations: 4 kB / 0.5524 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.915e-05/0.3614, allocations: 15.98 kB / 0.5525 GB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.3614, allocations: 4 kB / 0.5525 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3614, allocations: 4 kB / 0.5525 GB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00208/0.3635, allocations: 1.794 MB / 0.5542 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002106/0.3637, allocations: 204 kB / 0.5544 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.881e-05/0.3638, allocations: 12.06 kB / 0.5544 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002086/0.364, allocations: 8 kB / 0.5544 GB, free: 120 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.642e-05/0.364, allocations: 48.42 kB / 0.5545 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.219e-05/0.3641, allocations: 16 kB / 0.5545 GB, free: 52 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001212/0.3653, allocations: 0.8559 MB / 0.5553 GB, free: 15.19 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3653, allocations: 4 kB / 0.5553 GB, free: 15.19 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006324/0.3659, allocations: 207.2 kB / 0.5555 GB, free: 14.98 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (Population.Integrator1.y,Natural_Resources.Integrator1.y,Capital_Investment.Integrator1.y,Pollution.Integrator1.y,CIAF.Integrator1.y) * 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.002577/0.3685, allocations: 2.362 MB / 0.5578 GB, free: 12.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.3698, allocations: 0.9219 MB / 0.5587 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3698, allocations: 0 / 0.5587 GB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005917/0.3704, allocations: 479 kB / 0.5592 GB, free: 11.21 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006398/0.371, allocations: 94.92 kB / 0.5593 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01535/0.3864, allocations: 11.08 MB / 0.5701 GB, free: 15.86 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001071/0.3875, allocations: 1.28 MB / 0.5713 GB, free: 14.55 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002436/0.3877, allocations: 72.36 kB / 0.5714 GB, free: 14.48 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007479/0.3885, allocations: 0.5774 MB / 0.572 GB, free: 13.9 MB / 430.1 MB Notification: Performance of SimCode: time 1.473e-06/0.3885, allocations: 0 / 0.572 GB, free: 13.9 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04953/0.438, allocations: 18 MB / 0.5896 GB, free: 11.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.14/10.58, allocations: 11.81 kB / 0.5896 GB, free: 11.95 MB / 446.1 MB " [Timeout remaining time 649] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1_res.csv --start-time 1900 --stop-time 2100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_1.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.387562170159072] Failed to read output from testmodel.py, exit status != 0: 10.659942985977978 10.683031913 10.3484143 Calling exit ...