Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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.0008041/0.0008041, 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.0009031/0.0009031, 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.906/0.906, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.1245/0.1245, allocations: 21.79 MB / 281 MB, free: 7.395 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_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_3,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.086e-06/3.086e-06, allocations: 0 / 417.8 MB, free: 9.363 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.863e-05/2.171e-05, allocations: 5.797 kB / 417.8 MB, free: 9.359 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.003597/0.003619, allocations: 3.075 MB / 420.8 MB, free: 6.273 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001753/0.005372, allocations: 0.674 MB / 421.5 MB, free: 5.598 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004899/0.005862, allocations: 15.94 kB / 421.5 MB, free: 5.582 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003465/0.006209, allocations: 178.3 kB / 421.7 MB, free: 5.406 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002904/0.006499, allocations: 134.8 kB / 421.8 MB, free: 5.273 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006493/0.007149, allocations: 359.5 kB / 422.2 MB, free: 4.922 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006458/0.007794, allocations: 0.8443 MB / 423 MB, free: 4.074 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005275/0.008322, allocations: 492 kB / 423.5 MB, free: 3.559 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003562/0.008678, allocations: 490.8 kB / 424 MB, free: 3.078 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002045/0.008883, allocations: 294.8 kB / 424.3 MB, free: 2.789 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 8.858e-05/0.008971, allocations: 88 kB / 424.4 MB, free: 2.703 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000153/0.009124, allocations: 111.9 kB / 424.5 MB, free: 2.594 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002681/0.009392, allocations: 458.3 kB / 424.9 MB, free: 2.145 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001831/0.009575, allocations: 330.6 kB / 425.2 MB, free: 1.82 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001073/0.01065, allocations: 1.214 MB / 426.5 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.01065, allocations: 0 / 426.5 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.01065, allocations: 0 / 426.5 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.726e-05/0.01068, allocations: 0 / 426.5 MB, free: 0.6016 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001501/0.01218, allocations: 1.75 MB / 428.2 MB, free: 14.8 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.01223, allocations: 8.031 kB / 428.2 MB, free: 14.79 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001612/0.01239, allocations: 178.7 kB / 428.4 MB, free: 14.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/0.01254, allocations: 207.6 kB / 428.6 MB, free: 14.4 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006512/0.0132, allocations: 0.703 MB / 429.3 MB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.948e-05/0.01325, allocations: 78.5 kB / 429.4 MB, free: 13.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.998e-05/0.01333, allocations: 104.4 kB / 429.5 MB, free: 13.48 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.01442, allocations: 1.19 MB / 430.7 MB, free: 12.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.01444, allocations: 4.188 kB / 430.7 MB, free: 12.22 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.374e-05/0.01448, allocations: 40.38 kB / 430.7 MB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/0.0145, allocations: 32.12 kB / 430.7 MB, free: 12.15 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.01556, allocations: 1.101 MB / 431.8 MB, free: 11.04 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003039/0.0186, allocations: 3.417 MB / 435.3 MB, free: 7.52 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00129/0.01989, allocations: 1.304 MB / 436.6 MB, free: 6.199 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005156/0.02041, allocations: 466.6 kB / 437 MB, free: 5.742 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.558e-05/0.02047, allocations: 24.64 kB / 437 MB, free: 5.719 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.0205, allocations: 43.22 kB / 437.1 MB, free: 5.668 MB / 410.7 MB Notification: Performance of pre-optimization done (n=68): time 2.434e-06/0.0205, allocations: 3.938 kB / 437.1 MB, free: 5.664 MB / 410.7 MB Notification: Performance of matching and sorting (n=68): time 0.001455/0.02196, allocations: 1.54 MB / 438.6 MB, free: 4.117 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.02199, allocations: 56.06 kB / 438.7 MB, free: 4.051 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.02304, allocations: 1.292 MB / 440 MB, free: 2.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.02307, allocations: 33.7 kB / 440 MB, free: 2.711 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004237/0.02349, allocations: 0.7843 MB / 440.8 MB, free: 1.918 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.02361, allocations: 241.9 kB / 441 MB, free: 1.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.02372, allocations: 118.6 kB / 441.1 MB, free: 1.555 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.737e-05/0.02382, allocations: 333.9 kB / 441.5 MB, free: 1.223 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003804/0.0242, allocations: 437.8 kB / 441.9 MB, free: 0.7969 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004126/0.02461, allocations: 0.5467 MB / 442.4 MB, free: 224 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1559/0.1805, allocations: 0.9941 MB / 443.4 MB, free: 63.81 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.1805, allocations: 0 / 443.4 MB, free: 63.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.000884/0.1814, allocations: 1.195 MB / 444.6 MB, free: 63.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.1814, allocations: 6.25 kB / 444.6 MB, free: 63.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.1814, allocations: 0 / 444.6 MB, free: 63.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.1815, allocations: 9.156 kB / 444.7 MB, free: 63.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002511/0.1817, allocations: 132.2 kB / 444.8 MB, free: 63.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.1817, allocations: 12.64 kB / 444.8 MB, free: 63.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001445/0.1819, allocations: 57.25 kB / 444.8 MB, free: 63.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.176e-05/0.1819, allocations: 25.75 kB / 444.9 MB, free: 63.75 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 (83): * Single equations (assignments): 83 * 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.0003575/0.1823, allocations: 378.3 kB / 445.2 MB, free: 63.63 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.506e-05/0.1823, allocations: 147.4 kB / 445.4 MB, free: 63.63 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000836/0.1832, allocations: 1.206 MB / 446.6 MB, free: 63.34 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.1832, allocations: 6.5 kB / 446.6 MB, free: 63.34 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1832, allocations: 0 / 446.6 MB, free: 63.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.1832, allocations: 3.375 kB / 446.6 MB, free: 63.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001469/0.1846, allocations: 2.282 MB / 448.9 MB, free: 62.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1846, allocations: 3.875 kB / 448.9 MB, free: 62.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002418/0.1849, allocations: 110.2 kB / 449 MB, free: 62.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.1849, allocations: 3.125 kB / 449 MB, free: 62.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.1849, allocations: 14.31 kB / 449 MB, free: 62.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.1849, allocations: 0 / 449 MB, free: 62.54 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1849, allocations: 3.469 kB / 449 MB, free: 62.54 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001116/0.186, allocations: 1.9 MB / 450.9 MB, free: 61.95 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.864e-05/0.1861, allocations: 134.2 kB / 451 MB, free: 61.86 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.59e-05/0.1861, allocations: 13.75 kB / 451.1 MB, free: 61.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.1863, allocations: 14.58 kB / 451.1 MB, free: 61.85 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.169e-05/0.1863, allocations: 51.23 kB / 451.1 MB, free: 61.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.1863, allocations: 17.39 kB / 451.1 MB, free: 61.83 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005556/0.1869, allocations: 0.8895 MB / 452 MB, free: 61.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1869, allocations: 0 / 452 MB, free: 61.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000356/0.1872, allocations: 216.8 kB / 452.2 MB, free: 61.47 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 (68): * Single equations (assignments): 68 * 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.001396/0.1886, allocations: 2.462 MB / 454.7 MB, free: 60.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007363/0.1894, allocations: 0.9673 MB / 455.7 MB, free: 60.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1894, allocations: 2.312 kB / 455.7 MB, free: 60.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003417/0.1897, allocations: 0.4923 MB / 456.2 MB, free: 60.01 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004026/0.1901, allocations: 97.16 kB / 456.3 MB, free: 59.95 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008288/0.1984, allocations: 11.54 MB / 467.8 MB, free: 55.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000543/0.199, allocations: 0.7205 MB / 468.5 MB, free: 55.09 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001646/0.1991, allocations: 74.34 kB / 468.6 MB, free: 55.08 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003335/0.1995, allocations: 0.5881 MB / 469.2 MB, free: 54.59 MB / 410.7 MB Notification: Performance of SimCode: time 1.292e-06/0.1995, allocations: 4 kB / 469.2 MB, free: 54.58 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03796/0.2374, allocations: 19.08 MB / 488.3 MB, free: 52.13 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.533/7.77, allocations: 14.73 kB / 488.3 MB, free: 52.12 MB / 410.7 MB " [Timeout remaining time 652] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3_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_3.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.809314202517271] Failed to read output from testmodel.py, exit status != 0: 7.859431837685406 7.866465964 7.854327294 Calling exit ...