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.0008249/0.0008249, 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.0008637/0.0008637, allocations: 169.9 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.9258/0.9258, allocations: 177.1 MB / 202.8 MB, free: 5.738 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.1233/0.1233, allocations: 21.79 MB / 281 MB, free: 7.387 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_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: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 417.8 MB, free: 9.383 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.018e-05/2.186e-05, allocations: 13.59 kB / 417.8 MB, free: 9.371 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.003087/0.003109, allocations: 3.06 MB / 420.8 MB, free: 6.301 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.004498, allocations: 0.6701 MB / 421.5 MB, free: 5.629 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000347/0.004845, allocations: 23.88 kB / 421.5 MB, free: 5.605 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000308/0.005153, allocations: 158.4 kB / 421.7 MB, free: 5.449 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002262/0.005379, allocations: 118.8 kB / 421.8 MB, free: 5.332 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005543/0.005933, allocations: 363.5 kB / 422.1 MB, free: 4.977 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006123/0.006545, allocations: 0.8442 MB / 423 MB, free: 4.129 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004834/0.007029, allocations: 484.1 kB / 423.5 MB, free: 3.621 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003149/0.007344, allocations: 494.8 kB / 423.9 MB, free: 3.137 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004425/0.007786, allocations: 298.7 kB / 424.2 MB, free: 2.844 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 8.306e-05/0.007869, allocations: 88 kB / 424.3 MB, free: 2.758 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001366/0.008006, allocations: 119.9 kB / 424.4 MB, free: 2.641 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002362/0.008242, allocations: 450.4 kB / 424.9 MB, free: 2.199 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001636/0.008405, allocations: 318.7 kB / 425.2 MB, free: 1.887 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007699/0.009175, allocations: 1.187 MB / 426.4 MB, free: 0.6953 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.893e-06/0.009177, allocations: 0 / 426.4 MB, free: 0.6953 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.009178, allocations: 0 / 426.4 MB, free: 0.6953 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.681e-05/0.009195, allocations: 0 / 426.4 MB, free: 0.6953 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001343/0.01054, allocations: 1.695 MB / 428.1 MB, free: 14.95 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.01057, allocations: 12.03 kB / 428.1 MB, free: 14.94 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001505/0.01072, allocations: 166.6 kB / 428.2 MB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.01086, allocations: 207.6 kB / 428.4 MB, free: 14.57 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005824/0.01144, allocations: 0.6943 MB / 429.1 MB, free: 13.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.065e-05/0.01148, allocations: 78.47 kB / 429.2 MB, free: 13.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.451e-05/0.01156, allocations: 104.4 kB / 429.3 MB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/0.0126, allocations: 1.147 MB / 430.5 MB, free: 12.44 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.01262, allocations: 192 / 430.5 MB, free: 12.44 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.18e-05/0.01266, allocations: 48.38 kB / 430.5 MB, free: 12.39 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.65e-05/0.01268, allocations: 31.94 kB / 430.5 MB, free: 12.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001068/0.01375, allocations: 1.054 MB / 431.6 MB, free: 11.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002628/0.01638, allocations: 3.342 MB / 434.9 MB, free: 7.848 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.01741, allocations: 1.234 MB / 436.2 MB, free: 6.602 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000325/0.01773, allocations: 450.6 kB / 436.6 MB, free: 6.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.01e-05/0.01778, allocations: 24.64 kB / 436.6 MB, free: 6.137 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.903e-05/0.0178, allocations: 43.16 kB / 436.7 MB, free: 6.086 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 1.944e-06/0.0178, allocations: 0 / 436.7 MB, free: 6.086 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.001122/0.01893, allocations: 1.45 MB / 438.1 MB, free: 4.629 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.221e-05/0.01896, allocations: 60.06 kB / 438.2 MB, free: 4.559 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008661/0.01982, allocations: 1.238 MB / 439.4 MB, free: 3.309 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.01985, allocations: 37.7 kB / 439.5 MB, free: 3.266 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003701/0.02022, allocations: 0.7645 MB / 440.2 MB, free: 2.492 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/0.02033, allocations: 226.2 kB / 440.5 MB, free: 2.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.02044, allocations: 114.3 kB / 440.6 MB, free: 2.152 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.911e-05/0.02053, allocations: 337.9 kB / 440.9 MB, free: 1.816 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003548/0.02088, allocations: 413.1 kB / 441.3 MB, free: 1.41 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003631/0.02125, allocations: 0.5121 MB / 441.8 MB, free: 0.8633 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1467/0.1679, allocations: 0.9466 MB / 442.8 MB, free: 64 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.1679, allocations: 1.406 kB / 442.8 MB, free: 64 MB / 410.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001039/0.169, allocations: 1.137 MB / 443.9 MB, free: 63.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.169, allocations: 8.656 kB / 443.9 MB, free: 63.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.046e-06/0.169, allocations: 3.656 kB / 443.9 MB, free: 63.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.169, allocations: 8.75 kB / 443.9 MB, free: 63.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002654/0.1693, allocations: 129.7 kB / 444 MB, free: 63.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.1693, allocations: 8.562 kB / 444.1 MB, free: 63.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001524/0.1695, allocations: 55.31 kB / 444.1 MB, free: 63.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.344e-05/0.1695, allocations: 32.12 kB / 444.1 MB, free: 63.96 MB / 410.7 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.0003302/0.1698, allocations: 361.2 kB / 444.5 MB, free: 63.84 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.341e-05/0.1699, allocations: 138.9 kB / 444.6 MB, free: 63.84 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008104/0.1707, allocations: 1.152 MB / 445.8 MB, free: 63.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.1707, allocations: 6.656 kB / 445.8 MB, free: 63.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1707, allocations: 3.469 kB / 445.8 MB, free: 63.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1707, allocations: 0 / 445.8 MB, free: 63.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00145/0.1722, allocations: 2.192 MB / 448 MB, free: 62.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.1722, allocations: 0 / 448 MB, free: 62.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002461/0.1724, allocations: 104.1 kB / 448.1 MB, free: 62.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.1724, allocations: 3.219 kB / 448.1 MB, free: 62.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.159e-05/0.1724, allocations: 17.56 kB / 448.1 MB, free: 62.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.1724, allocations: 0.5625 kB / 448.1 MB, free: 62.93 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1724, allocations: 5.969 kB / 448.1 MB, free: 62.93 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.1736, allocations: 1.799 MB / 449.9 MB, free: 62.35 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.381e-05/0.1737, allocations: 125.3 kB / 450 MB, free: 62.27 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.426e-05/0.1737, allocations: 11.41 kB / 450 MB, free: 62.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.1738, allocations: 14.88 kB / 450.1 MB, free: 62.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.57e-05/0.1738, allocations: 45.66 kB / 450.1 MB, free: 62.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.1739, allocations: 20.58 kB / 450.1 MB, free: 62.24 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005338/0.1744, allocations: 0.8524 MB / 451 MB, free: 61.94 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1744, allocations: 0 / 451 MB, free: 61.94 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003686/0.1748, allocations: 209.8 kB / 451.2 MB, free: 61.89 MB / 410.7 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.001367/0.1761, allocations: 2.361 MB / 453.5 MB, free: 60.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000724/0.1769, allocations: 0.9205 MB / 454.5 MB, free: 60.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1769, allocations: 0 / 454.5 MB, free: 60.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003352/0.1772, allocations: 480.3 kB / 454.9 MB, free: 60.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004674/0.1777, allocations: 88.61 kB / 455 MB, free: 60.39 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009182/0.1868, allocations: 11.07 MB / 466.1 MB, free: 55.84 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004989/0.1873, allocations: 0.6943 MB / 466.8 MB, free: 55.68 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001478/0.1875, allocations: 74.47 kB / 466.9 MB, free: 55.66 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003021/0.1878, allocations: 0.5659 MB / 467.4 MB, free: 55.18 MB / 410.7 MB Notification: Performance of SimCode: time 8.11e-07/0.1878, allocations: 0 / 467.4 MB, free: 55.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03412/0.2219, allocations: 18.48 MB / 485.9 MB, free: 52.76 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.523/7.745, allocations: 1.375 kB / 485.9 MB, free: 52.76 MB / 410.7 MB " [Timeout remaining time 652] (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: 9.763667652383447] Failed to read output from testmodel.py, exit status != 0: 7.842785308137536 7.850411463 7.839763705 Calling exit ...