Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.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.001803/0.001803, allocations: 113 kB / 16.46 MB, free: 6.453 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.002088/0.002088, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.448/1.448, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.1104/0.1104, 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_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001",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.002246/0.002246, allocations: 67.89 kB / 468.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3075, allocations: 59.57 MB / 0.5158 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001): time 0.003643/0.3112, allocations: 3.212 MB / 0.5189 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.3127, allocations: 0.9441 MB / 0.5198 GB, free: 7.121 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001756/0.3129, allocations: 8.312 kB / 0.5198 GB, free: 7.117 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001935/0.3131, allocations: 66.05 kB / 0.5199 GB, free: 7.078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003216/0.3134, allocations: 172.1 kB / 0.52 GB, free: 6.961 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005011/0.3139, allocations: 199.6 kB / 0.5202 GB, free: 6.848 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006986/0.3146, allocations: 0.7487 MB / 0.521 GB, free: 6.488 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005224/0.3151, allocations: 372.4 kB / 0.5213 GB, free: 6.328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004062/0.3156, allocations: 318.5 kB / 0.5216 GB, free: 6.188 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004374/0.316, allocations: 398.3 kB / 0.522 GB, free: 6.004 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001058/0.3161, allocations: 76.03 kB / 0.5221 GB, free: 6.004 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000121/0.3162, allocations: 76.81 kB / 0.5222 GB, free: 6.004 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001468/0.3164, allocations: 205 kB / 0.5223 GB, free: 5.891 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002481/0.3166, allocations: 336.5 kB / 0.5227 GB, free: 5.695 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007199/0.3173, allocations: 0.7961 MB / 0.5234 GB, free: 5.387 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3173, allocations: 1.125 kB / 0.5234 GB, free: 5.387 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3173, allocations: 0 / 0.5234 GB, free: 5.387 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.312e-05/0.3174, allocations: 0 / 0.5234 GB, free: 5.387 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001912/0.3193, allocations: 0.913 MB / 0.5243 GB, free: 4.758 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.3193, allocations: 15.16 kB / 0.5244 GB, free: 4.754 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000113/0.3194, allocations: 95.47 kB / 0.5244 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.3196, allocations: 68.94 kB / 0.5245 GB, free: 4.645 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005282/0.3201, allocations: 394.6 kB / 0.5249 GB, free: 4.328 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001441/0.3202, allocations: 108.5 kB / 0.525 GB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000113/0.3203, allocations: 50 kB / 0.525 GB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001594/0.3219, allocations: 0.6881 MB / 0.5257 GB, free: 3.984 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.322, allocations: 1.5 kB / 0.5257 GB, free: 3.984 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.224e-05/0.322, allocations: 16.28 kB / 0.5257 GB, free: 3.973 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.322, allocations: 11 kB / 0.5257 GB, free: 3.973 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001481/0.3235, allocations: 0.6062 MB / 0.5263 GB, free: 3.773 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0053/0.3288, allocations: 2.58 MB / 0.5289 GB, free: 2.391 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001208/0.33, allocations: 0.5225 MB / 0.5294 GB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009992/0.331, allocations: 392.2 kB / 0.5297 GB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.593e-05/0.3311, allocations: 10.69 kB / 0.5297 GB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.3311, allocations: 38 kB / 0.5298 GB, free: 1.992 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 2.044e-06/0.3311, allocations: 0 / 0.5298 GB, free: 1.992 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.006215/0.3373, allocations: 2.263 MB / 0.532 GB, free: 1.039 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/0.3373, allocations: 61.23 kB / 0.532 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000392/0.3377, allocations: 359.1 kB / 0.5324 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.817e-05/0.3378, allocations: 35.86 kB / 0.5324 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.3379, allocations: 234.2 kB / 0.5326 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.338, allocations: 193.9 kB / 0.5328 GB, free: 408 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001993/0.3382, allocations: 101.7 kB / 0.5329 GB, free: 352 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.478e-05/0.3383, allocations: 355.6 kB / 0.5333 GB, free: 12 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009551/0.3393, allocations: 374.3 kB / 0.5336 GB, free: 15.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009666/0.3402, allocations: 430.5 kB / 0.534 GB, free: 15.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007413/0.3476, allocations: 2.072 MB / 0.5361 GB, free: 15.03 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.708e-06/0.3476, allocations: 1.156 kB / 0.5361 GB, free: 15.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002233/0.3499, allocations: 0.8613 MB / 0.5369 GB, free: 14.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.3499, allocations: 6.094 kB / 0.5369 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.3499, allocations: 2.469 kB / 0.5369 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.3499, allocations: 4.094 kB / 0.5369 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006123/0.356, allocations: 0.903 MB / 0.5378 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.836e-05/0.3561, allocations: 8.359 kB / 0.5378 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006371/0.3567, allocations: 57.09 kB / 0.5379 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.035e-05/0.3568, allocations: 26.5 kB / 0.5379 GB, free: 14.3 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: 8 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * 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.0004316/0.3572, allocations: 209.7 kB / 0.5381 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.3573, allocations: 45.72 kB / 0.5381 GB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002174/0.3595, allocations: 0.8379 MB / 0.5389 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.3595, allocations: 5.281 kB / 0.539 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.3595, allocations: 1.5 kB / 0.539 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.3595, allocations: 5.062 kB / 0.539 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004053/0.3636, allocations: 1.788 MB / 0.5407 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.3636, allocations: 1.562 kB / 0.5407 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006227/0.3698, allocations: 0.8858 MB / 0.5416 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.244e-05/0.3698, allocations: 3.844 kB / 0.5416 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.3699, allocations: 16.95 kB / 0.5416 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.787e-06/0.3699, allocations: 11.59 kB / 0.5416 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.3699, allocations: 1.406 kB / 0.5416 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003123/0.373, allocations: 1.276 MB / 0.5428 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002238/0.3733, allocations: 120.5 kB / 0.543 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.3734, allocations: 17.12 kB / 0.543 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005624/0.3739, allocations: 54.86 kB / 0.543 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001983/0.3741, allocations: 73.8 kB / 0.5431 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.961e-05/0.3742, allocations: 15.75 kB / 0.5431 GB, free: 11.11 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003472/0.3745, allocations: 261.1 kB / 0.5434 GB, free: 10.94 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3745, allocations: 0 / 0.5434 GB, free: 10.94 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006026/0.3751, allocations: 149.1 kB / 0.5435 GB, free: 10.92 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.003477/0.3786, allocations: 1.837 MB / 0.5453 GB, free: 9.641 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002122/0.3807, allocations: 0.7422 MB / 0.546 GB, free: 9.297 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.3807, allocations: 0.8125 kB / 0.546 GB, free: 9.297 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009822/0.3817, allocations: 409.2 kB / 0.5464 GB, free: 9.102 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006823/0.3824, allocations: 117.7 kB / 0.5465 GB, free: 9.031 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01241/0.3948, allocations: 6.156 MB / 0.5525 GB, free: 5.07 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005416/0.3954, allocations: 0.8579 MB / 0.5534 GB, free: 4.297 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004536/0.3958, allocations: 95.61 kB / 0.5535 GB, free: 4.254 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004401/0.3962, allocations: 185.7 kB / 0.5536 GB, free: 4.105 MB / 398.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3962, allocations: 0 / 0.5536 GB, free: 4.105 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04142/0.4377, allocations: 12.89 MB / 0.5662 GB, free: 8.203 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.136/9.573, allocations: 8.797 kB / 0.5662 GB, free: 8.199 MB / 414.1 MB " [Timeout remaining time 650] (rm -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 AES_AES_Coursework_ThermSys_Transport_Stratified_storage_tank_case_001.fmu > AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_001.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.504494431894273] Failed to read output from testmodel.py, exit status != 0: 9.65288587519899 9.678893828 9.35671719 Calling exit ...