Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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.001209/0.001209, 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.001527/0.001527, 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.9295/0.9295, 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.1202/0.1202, allocations: 21.79 MB / 281 MB, free: 7.379 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_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_2,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.195e-06/2.195e-06, allocations: 0 / 417.8 MB, free: 9.359 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.506e-05/1.725e-05, allocations: 2.844 kB / 417.8 MB, free: 9.355 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.002995/0.003012, allocations: 3.078 MB / 420.8 MB, free: 6.273 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.004103, allocations: 0.6662 MB / 421.5 MB, free: 5.605 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002957/0.004399, allocations: 23.94 kB / 421.5 MB, free: 5.582 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003023/0.004701, allocations: 174.3 kB / 421.7 MB, free: 5.41 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000205/0.004906, allocations: 138.7 kB / 421.8 MB, free: 5.273 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005352/0.005441, allocations: 359.5 kB / 422.2 MB, free: 4.922 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005625/0.006004, allocations: 0.8404 MB / 423 MB, free: 4.078 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005093/0.006513, allocations: 484.1 kB / 423.5 MB, free: 3.57 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002892/0.006802, allocations: 494.8 kB / 424 MB, free: 3.086 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002109/0.007013, allocations: 298.7 kB / 424.3 MB, free: 2.793 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 8.279e-05/0.007096, allocations: 84 kB / 424.4 MB, free: 2.711 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001435/0.00724, allocations: 119.8 kB / 424.5 MB, free: 2.594 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002273/0.007467, allocations: 454.4 kB / 424.9 MB, free: 2.148 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.007623, allocations: 326.6 kB / 425.2 MB, free: 1.828 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007497/0.008373, allocations: 1.21 MB / 426.5 MB, free: 0.6133 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.008376, allocations: 0 / 426.5 MB, free: 0.6133 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.008377, allocations: 0 / 426.5 MB, free: 0.6133 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.008388, allocations: 0 / 426.5 MB, free: 0.6133 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.00141/0.009798, allocations: 1.738 MB / 428.2 MB, free: 14.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.009842, allocations: 19.95 kB / 428.2 MB, free: 14.8 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001588/0.01, allocations: 174.6 kB / 428.4 MB, free: 14.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.01013, allocations: 207.6 kB / 428.6 MB, free: 14.42 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006089/0.01074, allocations: 0.707 MB / 429.3 MB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.893e-05/0.01079, allocations: 82.48 kB / 429.4 MB, free: 13.6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.742e-05/0.01087, allocations: 104.3 kB / 429.5 MB, free: 13.5 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009773/0.01185, allocations: 1.174 MB / 430.6 MB, free: 12.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.01186, allocations: 4.125 kB / 430.6 MB, free: 12.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.999e-05/0.0119, allocations: 44.38 kB / 430.7 MB, free: 12.21 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.01192, allocations: 28.12 kB / 430.7 MB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001237/0.01316, allocations: 1.101 MB / 431.8 MB, free: 11.07 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002677/0.01583, allocations: 3.395 MB / 435.2 MB, free: 7.566 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.01688, allocations: 1.301 MB / 436.5 MB, free: 6.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003425/0.01722, allocations: 466.6 kB / 437 MB, free: 5.793 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.47e-05/0.01727, allocations: 28.64 kB / 437 MB, free: 5.766 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.388e-05/0.0173, allocations: 51.2 kB / 437 MB, free: 5.707 MB / 410.7 MB Notification: Performance of pre-optimization done (n=67): time 1.903e-06/0.0173, allocations: 0 / 437 MB, free: 5.707 MB / 410.7 MB Notification: Performance of matching and sorting (n=67): time 0.001223/0.01852, allocations: 1.528 MB / 438.6 MB, free: 4.172 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.513e-05/0.01856, allocations: 60.06 kB / 438.6 MB, free: 4.102 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001187/0.01974, allocations: 1.296 MB / 439.9 MB, free: 2.797 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.01977, allocations: 33.7 kB / 440 MB, free: 2.758 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003626/0.02013, allocations: 0.7805 MB / 440.7 MB, free: 1.969 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.02024, allocations: 242.2 kB / 441 MB, free: 1.73 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.93e-05/0.02034, allocations: 114.3 kB / 441.1 MB, free: 1.613 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.831e-05/0.02043, allocations: 333.9 kB / 441.4 MB, free: 1.281 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003476/0.02077, allocations: 441.1 kB / 441.9 MB, free: 0.8477 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003802/0.02115, allocations: 0.5239 MB / 442.4 MB, free: 296 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1797/0.2008, allocations: 0.9923 MB / 443.4 MB, free: 63.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.2008, allocations: 2.969 kB / 443.4 MB, free: 63.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001025/0.2019, allocations: 1.188 MB / 444.6 MB, free: 63.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.2019, allocations: 6.688 kB / 444.6 MB, free: 63.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.2019, allocations: 4.594 kB / 444.6 MB, free: 63.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.2019, allocations: 6.5 kB / 444.6 MB, free: 63.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002593/0.2022, allocations: 129.5 kB / 444.7 MB, free: 63.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.2022, allocations: 13.81 kB / 444.7 MB, free: 63.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001464/0.2023, allocations: 57.78 kB / 444.8 MB, free: 63.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.187e-05/0.2024, allocations: 20.41 kB / 444.8 MB, free: 63.69 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 (82): * Single equations (assignments): 82 * 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.0003918/0.2027, allocations: 378.9 kB / 445.2 MB, free: 63.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.561e-05/0.2028, allocations: 149 kB / 445.3 MB, free: 63.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009484/0.2038, allocations: 1.193 MB / 446.5 MB, free: 63.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.2038, allocations: 5.531 kB / 446.5 MB, free: 63.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.2038, allocations: 2.375 kB / 446.5 MB, free: 63.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.2038, allocations: 3.328 kB / 446.5 MB, free: 63.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001745/0.2055, allocations: 2.274 MB / 448.8 MB, free: 62.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2055, allocations: 0 / 448.8 MB, free: 62.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002639/0.2058, allocations: 113.8 kB / 448.9 MB, free: 62.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.2058, allocations: 3.25 kB / 448.9 MB, free: 62.51 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.329e-05/0.2058, allocations: 14.36 kB / 448.9 MB, free: 62.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.2058, allocations: 3.219 kB / 448.9 MB, free: 62.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.2058, allocations: 0 / 448.9 MB, free: 62.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.2073, allocations: 1.888 MB / 450.8 MB, free: 61.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/0.2074, allocations: 130.4 kB / 450.9 MB, free: 61.83 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.691e-05/0.2074, allocations: 14.22 kB / 450.9 MB, free: 61.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.2075, allocations: 12.47 kB / 451 MB, free: 61.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.581e-05/0.2076, allocations: 44.86 kB / 451 MB, free: 61.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-05/0.2076, allocations: 20.59 kB / 451 MB, free: 61.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006386/0.2083, allocations: 0.8948 MB / 451.9 MB, free: 61.49 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2083, allocations: 0 / 451.9 MB, free: 61.49 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003714/0.2086, allocations: 210.8 kB / 452.1 MB, free: 61.44 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 (67): * Single equations (assignments): 67 * 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.001398/0.21, allocations: 2.451 MB / 454.6 MB, free: 60.29 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007178/0.2107, allocations: 0.9605 MB / 455.5 MB, free: 60.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.2107, allocations: 0 / 455.5 MB, free: 60.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003436/0.2111, allocations: 0.4949 MB / 456 MB, free: 59.98 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004321/0.2115, allocations: 96.11 kB / 456.1 MB, free: 59.92 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008879/0.2204, allocations: 11.54 MB / 467.7 MB, free: 55.23 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000554/0.221, allocations: 0.7143 MB / 468.4 MB, free: 55.07 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001786/0.2211, allocations: 73.94 kB / 468.4 MB, free: 55.05 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003314/0.2215, allocations: 0.596 MB / 469 MB, free: 54.55 MB / 410.7 MB Notification: Performance of SimCode: time 9.42e-07/0.2215, allocations: 0 / 469 MB, free: 54.55 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0363/0.2578, allocations: 19.08 MB / 488.1 MB, free: 52.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.42/7.678, allocations: 7.266 kB / 488.1 MB, free: 52.1 MB / 410.7 MB " [Timeout remaining time 652] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2_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_2.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.729744476266205] Failed to read output from testmodel.py, exit status != 0: 7.768844407051802 7.774891086 7.764924519 Calling exit ...