Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.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.00158/0.00158, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001766/0.001766, allocations: 209.1 kB / 23.04 MB, free: 5.074 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.524/1.524, allocations: 230.6 MB / 256.8 MB, free: 8.051 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.1016/0.1016, allocations: 22.94 MB / 336.2 MB, free: 12.64 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) Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002",fmuType="cs",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.0031/0.0031, allocations: 71.89 kB / 472.3 MB, free: 8.02 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3532, allocations: 59.28 MB / 0.5191 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.004112/0.3573, allocations: 3.388 MB / 0.5224 GB, free: 8.336 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001984/0.3593, allocations: 0.9826 MB / 0.5234 GB, free: 7.633 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002684/0.3596, allocations: 13.38 kB / 0.5234 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002783/0.3599, allocations: 107.7 kB / 0.5235 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004773/0.3603, allocations: 262 kB / 0.5237 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005936/0.3609, allocations: 199.9 kB / 0.5239 GB, free: 7.273 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001217/0.3621, allocations: 1.239 MB / 0.5251 GB, free: 6.664 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007806/0.3629, allocations: 0.6619 MB / 0.5258 GB, free: 6.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006862/0.3636, allocations: 491.3 kB / 0.5262 GB, free: 6.141 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007993/0.3644, allocations: 0.5805 MB / 0.5268 GB, free: 5.879 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000192/0.3646, allocations: 132.6 kB / 0.5269 GB, free: 5.879 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002236/0.3648, allocations: 137.4 kB / 0.5271 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003715/0.3652, allocations: 398.7 kB / 0.5275 GB, free: 5.688 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005657/0.3658, allocations: 0.5345 MB / 0.528 GB, free: 5.359 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001842/0.3676, allocations: 1.466 MB / 0.5294 GB, free: 4.836 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3676, allocations: 0 / 0.5294 GB, free: 4.836 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3676, allocations: 0 / 0.5294 GB, free: 4.836 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.176e-05/0.3676, allocations: 1.125 kB / 0.5294 GB, free: 4.836 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: 182 * Number of variables: 182 Notification: Performance of Generate backend data structure: time 0.003047/0.3707, allocations: 1.239 MB / 0.5306 GB, free: 4.145 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.3707, allocations: 10.77 kB / 0.5306 GB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.445e-05/0.3708, allocations: 18.78 kB / 0.5306 GB, free: 4.141 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001416/0.3709, allocations: 116.6 kB / 0.5308 GB, free: 4.059 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002362/0.3712, allocations: 91.39 kB / 0.5308 GB, free: 4.016 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009616/0.3721, allocations: 0.514 MB / 0.5313 GB, free: 3.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.953e-05/0.3722, allocations: 82.05 kB / 0.5314 GB, free: 3.602 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001707/0.3724, allocations: 88.58 kB / 0.5315 GB, free: 3.566 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001708/0.3741, allocations: 0.9259 MB / 0.5324 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.3741, allocations: 0.6875 kB / 0.5324 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.926e-05/0.3742, allocations: 25.59 kB / 0.5324 GB, free: 3.176 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.508e-05/0.3742, allocations: 18.44 kB / 0.5325 GB, free: 3.176 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.3757, allocations: 0.8094 MB / 0.5332 GB, free: 2.867 MB / 382.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(pipeline.fluidStream.w) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005726/0.3814, allocations: 3.929 MB / 0.5371 GB, free: 340 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002645/0.384, allocations: 1.016 MB / 0.5381 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006545/0.3847, allocations: 406 kB / 0.5385 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.62e-05/0.3847, allocations: 11.36 kB / 0.5385 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.836e-05/0.3848, allocations: 37.53 kB / 0.5385 GB, free: 15.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=58): time 2.415e-06/0.3848, allocations: 0.9062 kB / 0.5385 GB, free: 15.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=58): time 0.004033/0.3888, allocations: 1.609 MB / 0.5401 GB, free: 15.1 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/0.3889, allocations: 62.47 kB / 0.5401 GB, free: 15.03 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005624/0.3894, allocations: 418.7 kB / 0.5405 GB, free: 14.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.939e-05/0.3895, allocations: 36.08 kB / 0.5406 GB, free: 14.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002274/0.3897, allocations: 328.9 kB / 0.5409 GB, free: 14.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002593/0.39, allocations: 246.5 kB / 0.5411 GB, free: 14.26 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002397/0.3902, allocations: 123.4 kB / 0.5412 GB, free: 14.19 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.3904, allocations: 370.3 kB / 0.5416 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006905/0.3911, allocations: 453.3 kB / 0.542 GB, free: 13.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007269/0.3918, allocations: 0.4961 MB / 0.5425 GB, free: 13.3 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006935/0.3987, allocations: 2.363 MB / 0.5448 GB, free: 12.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.3987, allocations: 1.156 kB / 0.5448 GB, free: 12.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00254/0.4013, allocations: 1.339 MB / 0.5461 GB, free: 11.31 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.4013, allocations: 7.125 kB / 0.5461 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.4013, allocations: 9.141 kB / 0.5461 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001088/0.4024, allocations: 341 kB / 0.5465 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008499/0.4033, allocations: 183.3 kB / 0.5466 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01304/0.4163, allocations: 14.13 MB / 0.5604 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/0.4175, allocations: 79.59 kB / 0.5605 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.406e-05/0.4176, allocations: 25.5 kB / 0.5605 GB, free: 12.96 MB / 414.1 MB Warning: Assuming fixed start value for the following 2 variables: CH.Ec:VARIABLE(flow=false fixed = true ) type: Real CH.Tfo:VARIABLE(min = 0.0 start = CH.Tstart unit = \"K\" fixed = true nominal = 300.0 ) \"outlet fluid temp\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (79): * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009817/0.4185, allocations: 275.6 kB / 0.5608 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001906/0.4187, allocations: 56.59 kB / 0.5609 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002646/0.4214, allocations: 1.141 MB / 0.562 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.4214, allocations: 5.75 kB / 0.562 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.4214, allocations: 3.375 kB / 0.562 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.4214, allocations: 0 / 0.562 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00422/0.4256, allocations: 2.114 MB / 0.564 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/0.4256, allocations: 0 / 0.564 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.4267, allocations: 166.8 kB / 0.5642 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009381/0.4276, allocations: 310.5 kB / 0.5645 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/0.4277, allocations: 35.27 kB / 0.5645 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01248/0.4402, allocations: 13.7 MB / 0.5779 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.4402, allocations: 1.188 kB / 0.5779 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003185/0.4434, allocations: 1.6 MB / 0.5795 GB, free: 11.61 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002462/0.4436, allocations: 63 kB / 0.5795 GB, free: 11.57 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/0.4438, allocations: 38.42 kB / 0.5796 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005166/0.4443, allocations: 31.55 kB / 0.5796 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.4445, allocations: 50.78 kB / 0.5796 GB, free: 11.49 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.606e-05/0.4445, allocations: 16.06 kB / 0.5797 GB, free: 11.49 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004183/0.4449, allocations: 301.8 kB / 0.58 GB, free: 11.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4449, allocations: 0 / 0.58 GB, free: 11.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001211/0.4462, allocations: 299.5 kB / 0.5802 GB, free: 11.24 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 22 (CH.Tfo,CH.Ec,pipeline.fluidStream.T[1],pipeline.fluidStream.T[2],pipeline.fluidStream.T[3],pipeline.fluidStream.T[4],pipeline.fluidStream.T[5],pipeline.wall.wall.T[1,1],pipeline.wall.wall.T[1,2],pipeline.wall.wall.T[1,3],pipeline.wall.wall.T[2,1],pipeline.wall.wall.T[2,2],pipeline.wall.wall.T[2,3],pipeline.wall.wall.T[3,1],pipeline.wall.wall.T[3,2],pipeline.wall.wall.T[3,3],pipeline.wall.wall.T[4,1],pipeline.wall.wall.T[4,2],pipeline.wall.wall.T[4,3],pipeline.wall.wall.T[5,1],pipeline.wall.wall.T[5,2],pipeline.wall.wall.T[5,3]) * 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 (49): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003352/0.4495, allocations: 2.181 MB / 0.5824 GB, free: 9.355 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003001/0.4525, allocations: 2.015 MB / 0.5843 GB, free: 7.211 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/0.4525, allocations: 0 / 0.5843 GB, free: 7.211 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002159/0.4547, allocations: 1.545 MB / 0.5858 GB, free: 5.535 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009831/0.4557, allocations: 175.9 kB / 0.586 GB, free: 5.367 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01594/0.4716, allocations: 8.876 MB / 0.5947 GB, free: 12.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007876/0.4724, allocations: 1.005 MB / 0.5957 GB, free: 11.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005575/0.4729, allocations: 164.6 kB / 0.5958 GB, free: 11.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004458/0.4734, allocations: 263.3 kB / 0.5961 GB, free: 10.84 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4734, allocations: 0 / 0.5961 GB, free: 10.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08502/0.5584, allocations: 20.46 MB / 0.6161 GB, free: 6.652 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.57, allocations: 8.5 kB / 0.6161 GB, free: 6.645 MB / 462.1 MB " [Timeout remaining time 646] (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002_fmu --startTime=0 --stopTime=2000 --stepSize=4 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_002.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.48319650196936] Failed to read output from testmodel.py, exit status != 0: 13.744430329999886 13.760097615 13.388988912 Calling exit ...