Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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.001142/0.001142, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.001063/0.001063, allocations: 165.9 kB / 22.45 MB, free: 2.113 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.8958/0.8958, allocations: 177.1 MB / 202.8 MB, free: 5.75 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.1436/0.1436, 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_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.WorldDynamics.World2.Scenario_4,fileNamePrefix="SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.454e-06/2.454e-06, allocations: 0 / 417.8 MB, free: 9.383 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.815e-05/2.061e-05, allocations: 9.797 kB / 417.8 MB, free: 9.375 MB / 394.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.003064/0.003084, allocations: 3.087 MB / 420.9 MB, free: 6.277 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001321/0.004406, allocations: 0.6779 MB / 421.5 MB, free: 5.598 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004723/0.004878, allocations: 19.94 kB / 421.6 MB, free: 5.578 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003664/0.005244, allocations: 182.3 kB / 421.7 MB, free: 5.398 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002672/0.005512, allocations: 138.8 kB / 421.9 MB, free: 5.262 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000594/0.006106, allocations: 363.5 kB / 422.2 MB, free: 4.906 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006237/0.006729, allocations: 0.8522 MB / 423.1 MB, free: 4.051 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004834/0.007213, allocations: 484.2 kB / 423.5 MB, free: 3.543 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003614/0.007574, allocations: 0.491 MB / 424 MB, free: 3.051 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002094/0.007784, allocations: 298.7 kB / 424.3 MB, free: 2.758 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 9.136e-05/0.007875, allocations: 88 kB / 424.4 MB, free: 2.672 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001473/0.008022, allocations: 123.8 kB / 424.5 MB, free: 2.551 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002408/0.008263, allocations: 470.3 kB / 425 MB, free: 2.09 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001757/0.008439, allocations: 334.5 kB / 425.3 MB, free: 1.762 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001019/0.009458, allocations: 1.249 MB / 426.6 MB, free: 0.5078 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.009461, allocations: 0 / 426.6 MB, free: 0.5078 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.009463, allocations: 0 / 426.6 MB, free: 0.5078 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.705e-05/0.00949, allocations: 4 kB / 426.6 MB, free: 0.5039 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001549/0.01104, allocations: 1.785 MB / 428.4 MB, free: 14.67 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.01108, allocations: 12.03 kB / 428.4 MB, free: 14.66 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001622/0.01124, allocations: 171.5 kB / 428.5 MB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001646/0.01141, allocations: 227.5 kB / 428.8 MB, free: 14.26 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009243/0.01233, allocations: 0.7184 MB / 429.5 MB, free: 13.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.384e-05/0.01237, allocations: 78.53 kB / 429.6 MB, free: 13.43 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.947e-05/0.01245, allocations: 108.4 kB / 429.7 MB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001132/0.01358, allocations: 1.286 MB / 431 MB, free: 11.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.0136, allocations: 4.125 kB / 431 MB, free: 11.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.337e-05/0.01365, allocations: 52.38 kB / 431 MB, free: 11.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.756e-05/0.01368, allocations: 52.11 kB / 431.1 MB, free: 11.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001101/0.01478, allocations: 1.226 MB / 432.3 MB, free: 10.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002937/0.01772, allocations: 3.644 MB / 435.9 MB, free: 6.871 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001361/0.01908, allocations: 1.332 MB / 437.3 MB, free: 5.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003807/0.01946, allocations: 479.4 kB / 437.7 MB, free: 5.047 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.984e-05/0.01952, allocations: 28.62 kB / 437.8 MB, free: 5.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.01955, allocations: 43.22 kB / 437.8 MB, free: 4.969 MB / 410.7 MB Notification: Performance of pre-optimization done (n=70): time 2.184e-06/0.01955, allocations: 0 / 437.8 MB, free: 4.969 MB / 410.7 MB Notification: Performance of matching and sorting (n=70): time 0.001354/0.02091, allocations: 1.567 MB / 439.4 MB, free: 3.395 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.85e-05/0.02095, allocations: 89.7 kB / 439.5 MB, free: 3.289 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009674/0.02191, allocations: 1.378 MB / 440.8 MB, free: 1.902 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.271e-05/0.022, allocations: 45.69 kB / 440.9 MB, free: 1.852 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004159/0.02241, allocations: 0.858 MB / 441.7 MB, free: 0.9844 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.02252, allocations: 246 kB / 442 MB, free: 0.7422 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/0.02266, allocations: 158.6 kB / 442.1 MB, free: 0.5781 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.083e-05/0.02275, allocations: 337.9 kB / 442.5 MB, free: 248 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1629/0.1856, allocations: 476.8 kB / 442.9 MB, free: 63.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004583/0.1861, allocations: 0.7128 MB / 443.6 MB, free: 62.89 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007748/0.1868, allocations: 1.242 MB / 444.9 MB, free: 62.58 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.1868, allocations: 3.094 kB / 444.9 MB, free: 62.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00104/0.1879, allocations: 1.395 MB / 446.3 MB, free: 62.49 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1879, allocations: 6.812 kB / 446.3 MB, free: 62.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.1879, allocations: 9.844 kB / 446.3 MB, free: 62.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.3e-05/0.1879, allocations: 13.16 kB / 446.3 MB, free: 62.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003198/0.1883, allocations: 182.5 kB / 446.5 MB, free: 62.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.1883, allocations: 23.73 kB / 446.5 MB, free: 62.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001954/0.1885, allocations: 90.8 kB / 446.6 MB, free: 62.47 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.443e-05/0.1885, allocations: 46.58 kB / 446.6 MB, free: 62.47 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.0003439/0.1888, allocations: 403 kB / 447 MB, free: 62.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.281e-05/0.1889, allocations: 158.1 kB / 447.2 MB, free: 62.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009173/0.1898, allocations: 1.239 MB / 448.4 MB, free: 62.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.1898, allocations: 9.406 kB / 448.4 MB, free: 62.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.1898, allocations: 0 / 448.4 MB, free: 62.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1899, allocations: 8.609 kB / 448.4 MB, free: 62.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001569/0.1914, allocations: 2.314 MB / 450.8 MB, free: 61.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.1914, allocations: 0 / 450.8 MB, free: 61.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002574/0.1917, allocations: 123.3 kB / 450.9 MB, free: 61.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.1917, allocations: 4.438 kB / 450.9 MB, free: 61.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/0.1917, allocations: 17.7 kB / 450.9 MB, free: 61.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.1917, allocations: 3.094 kB / 450.9 MB, free: 61.29 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.1917, allocations: 3.094 kB / 450.9 MB, free: 61.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.1929, allocations: 1.995 MB / 452.9 MB, free: 60.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.251e-05/0.193, allocations: 142 kB / 453 MB, free: 60.52 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.812e-05/0.193, allocations: 18.44 kB / 453.1 MB, free: 60.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.1932, allocations: 11.16 kB / 453.1 MB, free: 60.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.85e-05/0.1932, allocations: 48.75 kB / 453.1 MB, free: 60.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/0.1933, allocations: 23.34 kB / 453.1 MB, free: 60.49 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005852/0.1938, allocations: 0.9357 MB / 454.1 MB, free: 60.17 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1938, allocations: 0 / 454.1 MB, free: 60.17 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004246/0.1943, allocations: 229.6 kB / 454.3 MB, free: 60.12 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.001375/0.1956, allocations: 2.564 MB / 456.9 MB, free: 58.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008055/0.1964, allocations: 1.062 MB / 457.9 MB, free: 58.65 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1964, allocations: 0 / 457.9 MB, free: 58.65 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003423/0.1968, allocations: 0.5105 MB / 458.4 MB, free: 58.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004399/0.1972, allocations: 96.95 kB / 458.5 MB, free: 58.47 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009525/0.2068, allocations: 12.41 MB / 470.9 MB, free: 53.03 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005485/0.2073, allocations: 0.7449 MB / 471.7 MB, free: 52.86 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002846/0.2076, allocations: 134.1 kB / 471.8 MB, free: 52.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003672/0.208, allocations: 0.6159 MB / 472.4 MB, free: 52.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/0.208, allocations: 0 / 472.4 MB, free: 52.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04277/0.2507, allocations: 19.95 MB / 492.4 MB, free: 47.89 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.597/7.848, allocations: 11.06 kB / 492.4 MB, free: 47.89 MB / 410.7 MB " [Timeout remaining time 652] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4_res.csv --start-time 1900 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 SystemDynamics_SystemDynamics_WorldDynamics_World2_Scenario_4.fmu > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.944961098022759] Failed to read output from testmodel.py, exit status != 0: 7.947731143794954 7.958099643 7.947136001 Calling exit ...