Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_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.001459/0.001459, allocations: 109.3 kB / 16.46 MB, free: 5.906 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.001525/0.001525, allocations: 213.6 kB / 19.43 MB, free: 3.602 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.473/1.473, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.139/0.139, allocations: 24.1 MB / 333 MB, free: 12.62 MB / 270.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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_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.00345/0.00345, allocations: 67.91 kB / 468.6 MB, free: 8.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3357/0.3391, allocations: 59.57 MB / 0.5157 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003): time 0.003718/0.3428, allocations: 3.232 MB / 0.5189 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001677/0.3445, allocations: 0.9464 MB / 0.5198 GB, free: 7.105 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002244/0.3447, allocations: 8.375 kB / 0.5198 GB, free: 7.102 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000213/0.345, allocations: 70.2 kB / 0.5199 GB, free: 7.059 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003502/0.3453, allocations: 172.5 kB / 0.5201 GB, free: 6.941 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005672/0.3459, allocations: 200 kB / 0.5203 GB, free: 6.828 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007867/0.3467, allocations: 0.7456 MB / 0.521 GB, free: 6.473 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005641/0.3472, allocations: 377.4 kB / 0.5213 GB, free: 6.309 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004723/0.3477, allocations: 316.8 kB / 0.5216 GB, free: 6.172 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004647/0.3482, allocations: 402.6 kB / 0.522 GB, free: 5.984 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001384/0.3483, allocations: 77.03 kB / 0.5221 GB, free: 5.984 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.3484, allocations: 77.28 kB / 0.5222 GB, free: 5.984 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001512/0.3486, allocations: 208.1 kB / 0.5224 GB, free: 5.867 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002543/0.3488, allocations: 344.4 kB / 0.5227 GB, free: 5.664 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007204/0.3496, allocations: 0.7896 MB / 0.5235 GB, free: 5.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3496, allocations: 3.938 kB / 0.5235 GB, free: 5.359 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3496, allocations: 1.094 kB / 0.5235 GB, free: 5.359 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.3496, allocations: 3.938 kB / 0.5235 GB, free: 5.355 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001933/0.3515, allocations: 0.917 MB / 0.5244 GB, free: 4.723 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.3516, allocations: 11.3 kB / 0.5244 GB, free: 4.723 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001142/0.3517, allocations: 95.62 kB / 0.5245 GB, free: 4.648 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.3518, allocations: 69.72 kB / 0.5246 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005141/0.3523, allocations: 396.8 kB / 0.5249 GB, free: 4.297 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001217/0.3524, allocations: 109.9 kB / 0.525 GB, free: 4.215 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.3525, allocations: 49.69 kB / 0.5251 GB, free: 4.199 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/0.3542, allocations: 0.6912 MB / 0.5258 GB, free: 3.953 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.3542, allocations: 0 / 0.5258 GB, free: 3.953 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.576e-05/0.3543, allocations: 16.25 kB / 0.5258 GB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.3543, allocations: 12.53 kB / 0.5258 GB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001564/0.3558, allocations: 0.6063 MB / 0.5264 GB, free: 3.746 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005109/0.361, allocations: 2.567 MB / 0.5289 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.3622, allocations: 0.542 MB / 0.5294 GB, free: 2.145 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001028/0.3633, allocations: 401.1 kB / 0.5298 GB, free: 1.996 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.429e-05/0.3633, allocations: 9.062 kB / 0.5298 GB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.3634, allocations: 42.14 kB / 0.5298 GB, free: 1.945 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.514e-06/0.3634, allocations: 0.5938 kB / 0.5298 GB, free: 1.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.006465/0.3698, allocations: 2.292 MB / 0.5321 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.75e-05/0.3698, allocations: 58.75 kB / 0.5321 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004186/0.3703, allocations: 360.7 kB / 0.5325 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.174e-05/0.3703, allocations: 35.92 kB / 0.5325 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.3704, allocations: 235.3 kB / 0.5327 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/0.3706, allocations: 202.1 kB / 0.5329 GB, free: 340 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002027/0.3708, allocations: 97.44 kB / 0.533 GB, free: 288 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.3709, allocations: 357.2 kB / 0.5334 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009954/0.3719, allocations: 377.1 kB / 0.5337 GB, free: 15.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/0.3729, allocations: 424.6 kB / 0.5341 GB, free: 15.63 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007564/0.3805, allocations: 2.102 MB / 0.5362 GB, free: 14.97 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-06/0.3805, allocations: 1.125 kB / 0.5362 GB, free: 14.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002321/0.3828, allocations: 0.8705 MB / 0.537 GB, free: 14.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.3828, allocations: 5.656 kB / 0.537 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.3828, allocations: 2.219 kB / 0.537 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-05/0.3829, allocations: 4.594 kB / 0.537 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006433/0.3893, allocations: 0.914 MB / 0.5379 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.93e-05/0.3893, allocations: 4.125 kB / 0.5379 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006788/0.39, allocations: 56.8 kB / 0.538 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.496e-05/0.3901, allocations: 19.12 kB / 0.538 GB, free: 14.24 MB / 398.1 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = \"m\" fixed = true stateSelect=StateSelect.prefer ) \"cold height\" type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = \"K\" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = \"K\" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = \"K\" fixed = true nominal = 300.0 ) \"outlet fluid temp\" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.tube.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.0004405/0.3905, allocations: 208.7 kB / 0.5382 GB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.3906, allocations: 44.34 kB / 0.5383 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002292/0.3929, allocations: 0.8501 MB / 0.5391 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.3929, allocations: 5.844 kB / 0.5391 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.393, allocations: 4 kB / 0.5391 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.393, allocations: 3.984 kB / 0.5391 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004194/0.3972, allocations: 1.809 MB / 0.5409 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.3972, allocations: 1.5 kB / 0.5409 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006369/0.4035, allocations: 0.9025 MB / 0.5417 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.297e-05/0.4035, allocations: 2.375 kB / 0.5418 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001172/0.4037, allocations: 18.42 kB / 0.5418 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.07e-05/0.4037, allocations: 7.906 kB / 0.5418 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.4037, allocations: 0 / 0.5418 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003165/0.4068, allocations: 1.303 MB / 0.543 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002125/0.407, allocations: 122.8 kB / 0.5432 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.4072, allocations: 17.67 kB / 0.5432 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006239/0.4078, allocations: 56.69 kB / 0.5432 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001895/0.408, allocations: 73.98 kB / 0.5433 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.283e-05/0.408, allocations: 19.7 kB / 0.5433 GB, free: 11 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003359/0.4084, allocations: 255.4 kB / 0.5436 GB, free: 10.83 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4084, allocations: 5 kB / 0.5436 GB, free: 10.83 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006196/0.409, allocations: 146.5 kB / 0.5437 GB, free: 10.81 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (stank.lcold,stank.Thot,stank.Tcold,H.Tfo,H.Ec,tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5]) * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 55 * 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.003624/0.4126, allocations: 1.867 MB / 0.5455 GB, free: 9.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002212/0.4148, allocations: 0.7493 MB / 0.5463 GB, free: 9.176 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.4148, allocations: 1.344 kB / 0.5463 GB, free: 9.176 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.416, allocations: 420.9 kB / 0.5467 GB, free: 8.973 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000794/0.4168, allocations: 106.4 kB / 0.5468 GB, free: 8.914 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01249/0.4292, allocations: 6.096 MB / 0.5527 GB, free: 4.984 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005511/0.4298, allocations: 0.8599 MB / 0.5536 GB, free: 4.207 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004911/0.4303, allocations: 95.3 kB / 0.5537 GB, free: 4.164 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004537/0.4307, allocations: 190.5 kB / 0.5538 GB, free: 4.012 MB / 398.1 MB Notification: Performance of SimCode: time 1.323e-06/0.4307, allocations: 0 / 0.5538 GB, free: 4.012 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06068/0.4914, allocations: 12.97 MB / 0.5665 GB, free: 7.926 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.203/9.695, allocations: 18.36 kB / 0.5665 GB, free: 7.914 MB / 414.1 MB " [Timeout remaining time 650] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003_res.csv --start-time 0 --stop-time 20000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_003.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_003.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.679090509889647] Failed to read output from testmodel.py, exit status != 0: 9.776936035836115 9.802363754 9.447766497 Calling exit ...