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.001282/0.001282, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.00154/0.00154, allocations: 209.9 kB / 23.01 MB, free: 4.992 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.484/1.484, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1226/0.1226, allocations: 24.04 MB / 337.2 MB, free: 11.32 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="me",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="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.002145/0.002145, allocations: 67.89 kB / 473.8 MB, free: 6.395 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.333, allocations: 59.57 MB / 0.5209 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.003921/0.3369, allocations: 3.075 MB / 0.5239 GB, free: 7.969 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001686/0.3386, allocations: 0.929 MB / 0.5248 GB, free: 7.316 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00023/0.3388, allocations: 14.25 kB / 0.5248 GB, free: 7.309 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002465/0.339, allocations: 107.4 kB / 0.5249 GB, free: 7.242 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004466/0.3395, allocations: 265.7 kB / 0.5252 GB, free: 7.074 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005338/0.34, allocations: 197.1 kB / 0.5254 GB, free: 6.957 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001189/0.3412, allocations: 1.242 MB / 0.5266 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008495/0.3421, allocations: 0.6549 MB / 0.5272 GB, free: 6.047 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005863/0.3427, allocations: 492.2 kB / 0.5277 GB, free: 5.828 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006777/0.3433, allocations: 0.5265 MB / 0.5282 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001802/0.3435, allocations: 132.2 kB / 0.5283 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002135/0.3437, allocations: 136.8 kB / 0.5285 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003299/0.3441, allocations: 403.9 kB / 0.5289 GB, free: 5.422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004534/0.3445, allocations: 464.2 kB / 0.5293 GB, free: 5.176 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001628/0.3461, allocations: 1.469 MB / 0.5307 GB, free: 4.656 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.3461, allocations: 6.281 kB / 0.5307 GB, free: 4.652 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3461, allocations: 0 / 0.5307 GB, free: 4.652 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.581e-05/0.3462, allocations: 0 / 0.5307 GB, free: 4.652 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.002883/0.3491, allocations: 1.233 MB / 0.5319 GB, free: 3.965 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.42e-05/0.3491, allocations: 14.64 kB / 0.532 GB, free: 3.961 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001759/0.3493, allocations: 119 kB / 0.5321 GB, free: 3.879 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002144/0.3495, allocations: 89.8 kB / 0.5322 GB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.3505, allocations: 0.5116 MB / 0.5327 GB, free: 3.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.768e-05/0.3506, allocations: 87.45 kB / 0.5327 GB, free: 3.422 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/0.3508, allocations: 80.3 kB / 0.5328 GB, free: 3.395 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001654/0.3524, allocations: 0.955 MB / 0.5337 GB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.111e-05/0.3524, allocations: 1 kB / 0.5337 GB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.207e-05/0.3525, allocations: 25.28 kB / 0.5338 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.177e-05/0.3526, allocations: 17.88 kB / 0.5338 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00142/0.354, allocations: 0.8109 MB / 0.5346 GB, free: 2.652 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.005961/0.3599, allocations: 2.784 MB / 0.5373 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002687/0.3626, allocations: 1.021 MB / 0.5383 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006113/0.3632, allocations: 405.7 kB / 0.5387 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.911e-05/0.3633, allocations: 6.938 kB / 0.5387 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.3633, allocations: 39.14 kB / 0.5387 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of pre-optimization done (n=58): time 2.835e-06/0.3633, allocations: 0 / 0.5387 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.003797/0.3671, allocations: 1.611 MB / 0.5403 GB, free: 68 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.475e-05/0.3671, allocations: 58.38 kB / 0.5404 GB, free: 4 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006447/0.3678, allocations: 426.1 kB / 0.5408 GB, free: 15.76 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.202e-05/0.3678, allocations: 35.02 kB / 0.5408 GB, free: 15.72 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00027/0.3681, allocations: 333.8 kB / 0.5411 GB, free: 15.42 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002996/0.3684, allocations: 247.9 kB / 0.5413 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002422/0.3687, allocations: 122 kB / 0.5415 GB, free: 15.14 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002012/0.3689, allocations: 366.8 kB / 0.5418 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007246/0.3696, allocations: 458.5 kB / 0.5423 GB, free: 14.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007531/0.3703, allocations: 0.4967 MB / 0.5427 GB, free: 14.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007537/0.3779, allocations: 2.36 MB / 0.545 GB, free: 13.03 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/0.3779, allocations: 1.156 kB / 0.545 GB, free: 13.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.003248/0.3811, allocations: 1.341 MB / 0.5464 GB, free: 12.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.3812, allocations: 5.781 kB / 0.5464 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.3812, allocations: 1.844 kB / 0.5464 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001147/0.3823, allocations: 341.9 kB / 0.5467 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009299/0.3832, allocations: 184.1 kB / 0.5469 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0125/0.3957, allocations: 14.08 MB / 0.5606 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008977/0.3966, allocations: 67.78 kB / 0.5607 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.069e-05/0.3967, allocations: 24.94 kB / 0.5607 GB, free: 14.01 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.0006369/0.3973, allocations: 288.6 kB / 0.561 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.3975, allocations: 52.45 kB / 0.561 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002373/0.3999, allocations: 1.136 MB / 0.5621 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.3999, allocations: 6.188 kB / 0.5621 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.3999, allocations: 10.62 kB / 0.5622 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.3999, allocations: 3.984 kB / 0.5622 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003915/0.4038, allocations: 1.948 MB / 0.5641 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.4038, allocations: 5.078 kB / 0.5641 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/0.4048, allocations: 174.1 kB / 0.5642 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009021/0.4057, allocations: 304.6 kB / 0.5645 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001041/0.4058, allocations: 43.09 kB / 0.5646 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01295/0.4188, allocations: 13.63 MB / 0.5779 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.4188, allocations: 0.75 kB / 0.5779 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003311/0.4221, allocations: 1.604 MB / 0.5794 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002725/0.4224, allocations: 63.53 kB / 0.5795 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001303/0.4225, allocations: 36.11 kB / 0.5795 GB, free: 12.42 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004465/0.4229, allocations: 31.95 kB / 0.5796 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001869/0.4231, allocations: 52.41 kB / 0.5796 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.829e-05/0.4232, allocations: 16 kB / 0.5796 GB, free: 12.32 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00042/0.4236, allocations: 299.1 kB / 0.5799 GB, free: 12.03 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4236, allocations: 7.938 kB / 0.5799 GB, free: 12.02 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001108/0.4247, allocations: 299.5 kB / 0.5802 GB, free: 11.73 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.003321/0.428, allocations: 2.184 MB / 0.5823 GB, free: 9.477 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003043/0.4311, allocations: 2.008 MB / 0.5843 GB, free: 7.34 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/0.4311, allocations: 4 kB / 0.5843 GB, free: 7.336 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002029/0.4331, allocations: 1.545 MB / 0.5858 GB, free: 5.66 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009412/0.434, allocations: 165.5 kB / 0.586 GB, free: 5.5 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01584/0.4499, allocations: 8.87 MB / 0.5946 GB, free: 12.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006004/0.4505, allocations: 412.6 kB / 0.595 GB, free: 12 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006153/0.4511, allocations: 164.6 kB / 0.5952 GB, free: 11.84 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004842/0.4516, allocations: 263.3 kB / 0.5954 GB, free: 11.59 MB / 446.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4516, allocations: 0 / 0.5954 GB, free: 11.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09284/0.5444, allocations: 21.52 MB / 0.6164 GB, free: 6.406 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.79, allocations: 4.062 kB / 0.6165 GB, free: 6.402 MB / 462.1 MB " [Timeout remaining time 647] (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: 15.578274339903146] Failed to read output from testmodel.py, exit status != 0: 12.911905926186591 12.928981001 12.579444987 Calling exit ...