Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.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.001309/0.001309, allocations: 108.2 kB / 17.15 MB, free: 6.02 MB / 14.72 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.001428/0.001428, allocations: 208.5 kB / 20.11 MB, free: 3.062 MB / 14.72 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 1.477/1.477, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.104/0.104, allocations: 24.04 MB / 333.6 MB, free: 1.57 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.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(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002092/0.002092, allocations: 66.17 kB / 468.4 MB, free: 31.39 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.103, allocations: 59.55 MB / 0.5156 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.004807/0.1078, allocations: 3.452 MB / 0.519 GB, free: 8.723 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002127/0.1099, allocations: 1.076 MB / 0.52 GB, free: 7.641 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001924/0.1101, allocations: 7.938 kB / 0.52 GB, free: 7.633 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002448/0.1103, allocations: 83.2 kB / 0.5201 GB, free: 7.551 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004846/0.1108, allocations: 210.5 kB / 0.5203 GB, free: 7.344 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005952/0.1114, allocations: 231.5 kB / 0.5205 GB, free: 7.117 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009244/0.1124, allocations: 0.8575 MB / 0.5214 GB, free: 6.258 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007743/0.1131, allocations: 0.5488 MB / 0.5219 GB, free: 5.699 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005937/0.1137, allocations: 422.8 kB / 0.5223 GB, free: 5.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000882/0.1146, allocations: 0.5919 MB / 0.5229 GB, free: 4.688 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001582/0.1148, allocations: 100 kB / 0.523 GB, free: 4.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002517/0.115, allocations: 132 kB / 0.5231 GB, free: 4.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002799/0.1153, allocations: 279.2 kB / 0.5234 GB, free: 4.188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004565/0.1157, allocations: 434.2 kB / 0.5238 GB, free: 3.762 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001219/0.117, allocations: 1.063 MB / 0.5248 GB, free: 2.695 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.117, allocations: 0 / 0.5248 GB, free: 2.695 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.117, allocations: 0 / 0.5248 GB, free: 2.695 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.117, allocations: 4 kB / 0.5248 GB, free: 2.691 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: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.002644/0.1196, allocations: 1.059 MB / 0.5259 GB, free: 1.582 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/0.1197, allocations: 12.03 kB / 0.5259 GB, free: 1.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001479/0.1198, allocations: 90.7 kB / 0.526 GB, free: 1.473 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001909/0.12, allocations: 72.52 kB / 0.526 GB, free: 1.402 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007515/0.1208, allocations: 471.4 kB / 0.5265 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.621e-05/0.1208, allocations: 41.69 kB / 0.5265 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001385/0.121, allocations: 64.33 kB / 0.5266 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.1224, allocations: 0.7677 MB / 0.5273 GB, free: 36 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.1224, allocations: 0 / 0.5273 GB, free: 36 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.401e-05/0.1225, allocations: 23.98 kB / 0.5273 GB, free: 12 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.1225, allocations: 12 kB / 0.5274 GB, free: 0 / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0016/0.1241, allocations: 0.8406 MB / 0.5282 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005157/0.1292, allocations: 2.338 MB / 0.5305 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/0.1305, allocations: 0.6188 MB / 0.5311 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009207/0.1314, allocations: 422.2 kB / 0.5315 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.96e-05/0.1315, allocations: 20.52 kB / 0.5315 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.197e-05/0.1315, allocations: 39.12 kB / 0.5315 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001086/0.1326, allocations: 235.4 kB / 0.5318 GB, free: 11.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 3.256e-06/0.1326, allocations: 0 / 0.5318 GB, free: 11.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.01744/0.1501, allocations: 4.067 MB / 0.5357 GB, free: 7.266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/0.1501, allocations: 64.06 kB / 0.5358 GB, free: 7.191 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006069/0.1507, allocations: 445.8 kB / 0.5362 GB, free: 6.746 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001471/0.1509, allocations: 41.7 kB / 0.5362 GB, free: 6.699 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002169/0.1511, allocations: 273.2 kB / 0.5365 GB, free: 6.426 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002893/0.1514, allocations: 289.5 kB / 0.5368 GB, free: 6.141 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003348/0.1517, allocations: 186.5 kB / 0.537 GB, free: 5.953 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.1519, allocations: 370.8 kB / 0.5373 GB, free: 5.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009358/0.1528, allocations: 401.8 kB / 0.5377 GB, free: 5.191 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/0.1538, allocations: 0.5183 MB / 0.5382 GB, free: 4.633 MB / 398.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.02758/0.1814, allocations: 4.82 MB / 0.5429 GB, free: 15.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1814, allocations: 0 / 0.5429 GB, free: 15.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.007006/0.1884, allocations: 1.792 MB / 0.5447 GB, free: 13.95 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.1885, allocations: 8 kB / 0.5447 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.1885, allocations: 4 kB / 0.5447 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006633/0.1951, allocations: 1.034 MB / 0.5457 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001679/0.1968, allocations: 263.6 kB / 0.5459 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00797/0.2048, allocations: 5.272 MB / 0.5511 GB, free: 7.109 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001094/0.2058, allocations: 39.97 kB / 0.5511 GB, free: 7.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000255/0.2061, allocations: 55.88 kB / 0.5512 GB, free: 7.016 MB / 414.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: $DER.streamNL.w = 0.0 $DER.streamLIN.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005629/0.2067, allocations: 209.8 kB / 0.5514 GB, free: 6.801 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002184/0.2069, allocations: 63.58 kB / 0.5514 GB, free: 6.738 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004955/0.2118, allocations: 1.554 MB / 0.553 GB, free: 5.16 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-05/0.2119, allocations: 11.94 kB / 0.553 GB, free: 5.148 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/0.2119, allocations: 4 kB / 0.553 GB, free: 5.145 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/0.2119, allocations: 3.984 kB / 0.553 GB, free: 5.141 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006152/0.218, allocations: 2.349 MB / 0.5553 GB, free: 2.723 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.218, allocations: 0 / 0.5553 GB, free: 2.723 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/0.2193, allocations: 219.8 kB / 0.5555 GB, free: 2.508 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003564/0.2229, allocations: 0.687 MB / 0.5561 GB, free: 1.805 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001191/0.223, allocations: 27.92 kB / 0.5562 GB, free: 1.777 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005405/0.2284, allocations: 4.606 MB / 0.5607 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.2284, allocations: 3.938 kB / 0.5607 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005428/0.2339, allocations: 1.96 MB / 0.5626 GB, free: 10.94 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002304/0.2341, allocations: 148.5 kB / 0.5627 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001444/0.2342, allocations: 24 kB / 0.5628 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006443/0.2349, allocations: 31.97 kB / 0.5628 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001928/0.2351, allocations: 68.89 kB / 0.5629 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.232e-05/0.2352, allocations: 31.98 kB / 0.5629 GB, free: 10.62 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004401/0.2356, allocations: 319.1 kB / 0.5632 GB, free: 10.31 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2356, allocations: 0 / 0.5632 GB, free: 10.31 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009364/0.2365, allocations: 240 kB / 0.5634 GB, free: 10.07 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (streamNL.T[1],streamNL.T[2],streamNL.T[3],streamNL.T[4],streamNL.T[5],streamLIN.T[1],streamLIN.T[2],streamLIN.T[3],streamLIN.T[4],streamLIN.T[5]) * 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 (71): * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005733/0.2423, allocations: 2.561 MB / 0.5659 GB, free: 7.465 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00342/0.2457, allocations: 1.234 MB / 0.5671 GB, free: 6.219 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.2457, allocations: 0 / 0.5671 GB, free: 6.219 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001948/0.2476, allocations: 0.7305 MB / 0.5678 GB, free: 5.473 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008183/0.2485, allocations: 138.5 kB / 0.568 GB, free: 5.34 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02368/0.2721, allocations: 8.752 MB / 0.5765 GB, free: 12.38 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006793/0.2728, allocations: 0.9405 MB / 0.5774 GB, free: 11.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006281/0.2734, allocations: 149.6 kB / 0.5776 GB, free: 11.26 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005335/0.274, allocations: 259.3 kB / 0.5778 GB, free: 11.01 MB / 446.1 MB Notification: Performance of SimCode: time 1.293e-06/0.274, allocations: 0 / 0.5778 GB, free: 11.01 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2869/0.5609, allocations: 21.02 MB / 0.5984 GB, free: 70.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.63/14.19, allocations: 8 kB / 0.5984 GB, free: 70.52 MB / 446.1 MB " [Timeout remaining time 646] (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_003.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.082935123005882] Failed to read output from testmodel.py, exit status != 0: 14.29945344501175 14.317489206 14.197272752 Calling exit ...