Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 105.7 kB / 16.4 MB, free: 6.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 191.7 kB / 19.36 MB, free: 3.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 222.9 MB / 245.1 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09861/0.09861, allocations: 22.33 MB / 319.6 MB, free: 6.758 MB / 254.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_within_two_limits,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Keep_within_two_limits,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003013/0.003013, allocations: 67.91 kB / 446 MB, free: 7.898 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1492/0.1522, allocations: 54.94 MB / 0.4892 GB, free: 0.9023 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Keep_within_two_limits): time 0.005063/0.1573, allocations: 2.06 MB / 0.4912 GB, free: 14.83 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001983/0.1594, allocations: 0.6858 MB / 0.4919 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.1595, allocations: 4 kB / 0.4919 GB, free: 14.13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003694/0.1599, allocations: 35.66 kB / 0.4919 GB, free: 14.1 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002864/0.1602, allocations: 59.52 kB / 0.4919 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006355/0.1609, allocations: 175.8 kB / 0.4921 GB, free: 13.87 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006275/0.1615, allocations: 331.3 kB / 0.4924 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002976/0.1619, allocations: 96.19 kB / 0.4925 GB, free: 13.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002509/0.1621, allocations: 127.5 kB / 0.4926 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002959/0.1624, allocations: 139.4 kB / 0.4928 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.873e-05/0.1625, allocations: 28 kB / 0.4928 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.525e-05/0.1626, allocations: 28 kB / 0.4928 GB, free: 13.13 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001647/0.1628, allocations: 75.75 kB / 0.4929 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002029/0.163, allocations: 123.3 kB / 0.493 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005247/0.1635, allocations: 298.7 kB / 0.4933 GB, free: 12.64 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1636, allocations: 0 / 0.4933 GB, free: 12.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1636, allocations: 0 / 0.4933 GB, free: 12.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.928e-06/0.1636, allocations: 7.984 kB / 0.4933 GB, free: 12.63 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001918/0.1655, allocations: 0.6175 MB / 0.4939 GB, free: 11.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.1656, allocations: 11.97 kB / 0.4939 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.121e-05/0.1657, allocations: 54.72 kB / 0.494 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.215e-05/0.1658, allocations: 32.75 kB / 0.494 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008227/0.1666, allocations: 318.8 kB / 0.4943 GB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.881e-05/0.1667, allocations: 16.75 kB / 0.4943 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.591e-05/0.1668, allocations: 24.36 kB / 0.4944 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008016/0.1676, allocations: 254.1 kB / 0.4946 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.959e-05/0.1676, allocations: 0 / 0.4946 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.657e-05/0.1677, allocations: 19.98 kB / 0.4946 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.1677, allocations: 4 kB / 0.4946 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008064/0.1685, allocations: 179.9 kB / 0.4948 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00191/0.1705, allocations: 0.711 MB / 0.4955 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.1717, allocations: 258.3 kB / 0.4957 GB, free: 9.984 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003479/0.172, allocations: 96.8 kB / 0.4958 GB, free: 9.887 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.216e-05/0.1721, allocations: 4 kB / 0.4958 GB, free: 9.883 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/0.1721, allocations: 30.56 kB / 0.4959 GB, free: 9.844 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.994e-06/0.1722, allocations: 0 / 0.4959 GB, free: 9.844 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.004676/0.1768, allocations: 0.818 MB / 0.4967 GB, free: 9 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.177, allocations: 114.8 kB / 0.4968 GB, free: 8.863 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006678/0.1777, allocations: 260.9 kB / 0.497 GB, free: 8.602 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.203e-05/0.1777, allocations: 29.7 kB / 0.497 GB, free: 8.566 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.1779, allocations: 160.3 kB / 0.4972 GB, free: 8.402 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.39e-05/0.178, allocations: 63.44 kB / 0.4973 GB, free: 8.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.1782, allocations: 45.69 kB / 0.4973 GB, free: 8.289 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.1784, allocations: 338.8 kB / 0.4976 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003624/0.1788, allocations: 92.8 kB / 0.4977 GB, free: 7.855 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004054/0.1792, allocations: 133.8 kB / 0.4978 GB, free: 7.711 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007099/0.1799, allocations: 205.3 kB / 0.498 GB, free: 7.504 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1799, allocations: 0 / 0.498 GB, free: 7.504 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008834/0.1808, allocations: 269.3 kB / 0.4983 GB, free: 7.234 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.1808, allocations: 8.062 kB / 0.4983 GB, free: 7.227 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.1809, allocations: 7.984 kB / 0.4983 GB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.1809, allocations: 3.938 kB / 0.4983 GB, free: 7.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005434/0.1815, allocations: 59.89 kB / 0.4984 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.1815, allocations: 0 / 0.4984 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004019/0.1819, allocations: 39.86 kB / 0.4984 GB, free: 7.117 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.1819, allocations: 4 kB / 0.4984 GB, free: 7.113 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000352/0.1823, allocations: 172.1 kB / 0.4986 GB, free: 6.941 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002652/0.1826, allocations: 112.1 kB / 0.4987 GB, free: 6.816 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004379/0.183, allocations: 161.8 kB / 0.4988 GB, free: 6.652 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.134e-06/0.1831, allocations: 4 kB / 0.4988 GB, free: 6.648 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0006086/0.1837, allocations: 221.3 kB / 0.499 GB, free: 6.426 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.1837, allocations: 12.03 kB / 0.4991 GB, free: 6.414 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1837, allocations: 4 kB / 0.4991 GB, free: 6.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.534e-06/0.1838, allocations: 7.922 kB / 0.4991 GB, free: 6.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004718/0.1842, allocations: 51.98 kB / 0.4991 GB, free: 6.352 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.1843, allocations: 3.938 kB / 0.4991 GB, free: 6.348 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003602/0.1846, allocations: 31.86 kB / 0.4992 GB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.628e-05/0.1847, allocations: 8 kB / 0.4992 GB, free: 6.309 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0002071/0.1849, allocations: 189.1 kB / 0.4993 GB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.23e-05/0.185, allocations: 23.8 kB / 0.4994 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001803/0.1868, allocations: 408.2 kB / 0.4998 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.1868, allocations: 4 kB / 0.4998 GB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.1869, allocations: 0 / 0.4998 GB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.1869, allocations: 0 / 0.4998 GB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006417/0.1875, allocations: 333.4 kB / 0.5001 GB, free: 5.305 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.1875, allocations: 0 / 0.5001 GB, free: 5.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001879/0.1877, allocations: 19.92 kB / 0.5001 GB, free: 5.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008737/0.1886, allocations: 144.7 kB / 0.5002 GB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.795e-05/0.1887, allocations: 0 / 0.5002 GB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006285/0.195, allocations: 2.436 MB / 0.5026 GB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.195, allocations: 4.188 kB / 0.5026 GB, free: 2.562 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002288/0.1973, allocations: 0.5802 MB / 0.5032 GB, free: 1.965 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001646/0.1975, allocations: 112.8 kB / 0.5033 GB, free: 1.836 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.851e-05/0.1976, allocations: 8 kB / 0.5033 GB, free: 1.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004784/0.1981, allocations: 32 kB / 0.5033 GB, free: 1.797 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.736e-05/0.1982, allocations: 11.98 kB / 0.5033 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.091e-05/0.1983, allocations: 7.984 kB / 0.5033 GB, free: 1.777 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006166/0.1989, allocations: 196.4 kB / 0.5035 GB, free: 1.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 5e-07/0.1989, allocations: 0 / 0.5035 GB, free: 1.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009087/0.1998, allocations: 87.78 kB / 0.5036 GB, free: 1.504 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (C_hi.FO.y,P.x_scaled[1],P.x_scaled[2],C_lo.FO.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 (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002993/0.2029, allocations: 1.137 MB / 0.5047 GB, free: 344 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001217/0.2041, allocations: 295.7 kB / 0.505 GB, free: 48 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.698e-05/0.2041, allocations: 8.25 kB / 0.505 GB, free: 40 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.187/0.3912, allocations: 282.2 kB / 0.5053 GB, free: 20.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005138/0.3918, allocations: 40.2 kB / 0.5053 GB, free: 20.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003427/0.3952, allocations: 2.72 MB / 0.508 GB, free: 19.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000176/0.3954, allocations: 0.7655 MB / 0.5087 GB, free: 18.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001314/0.3955, allocations: 41.12 kB / 0.5088 GB, free: 18.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.999e-05/0.3956, allocations: 80.88 kB / 0.5088 GB, free: 18.67 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3957, allocations: 0 / 0.5088 GB, free: 18.67 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03243/0.4281, allocations: 6.297 MB / 0.515 GB, free: 18.15 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.06, allocations: 5.359 kB / 0.515 GB, free: 18.15 MB / 382.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits_res.csv --start-time 0 --stop-time 150 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.3 AES_AES_Coursework_Typical_control_structures_Keep_within_two_limits.fmu > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.770905973040499] Failed to read output from testmodel.py, exit status != 0: 12.154583203024231 12.164548841 11.998822689 Calling exit ...