Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 90.52 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005978/0.005978, allocations: 171.2 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1787/0.1787, allocations: 22.34 MB / 313.8 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002844/0.0002845, allocations: 12 kB / 382.7 MB, free: 10.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2246/0.2249, allocations: 55.98 MB / 438.7 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.002857/0.2278, allocations: 4.167 MB / 442.9 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.2291, allocations: 1.274 MB / 444.1 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001911/0.2293, allocations: 10.03 kB / 444.1 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002063/0.2295, allocations: 126.6 kB / 444.3 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000478/0.23, allocations: 415.9 kB / 444.7 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004737/0.2305, allocations: 282.5 kB / 444.9 MB, free: 34.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001411/0.2319, allocations: 2.636 MB / 447.6 MB, free: 33.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009577/0.2329, allocations: 1.273 MB / 448.8 MB, free: 33.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004358/0.2333, allocations: 0.6182 MB / 449.5 MB, free: 33.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007621/0.2341, allocations: 0.9126 MB / 450.4 MB, free: 32.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001369/0.2342, allocations: 91.38 kB / 450.5 MB, free: 32.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001787/0.2344, allocations: 94.47 kB / 450.6 MB, free: 32.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002997/0.2347, allocations: 0.5419 MB / 451.1 MB, free: 32.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00051/0.2353, allocations: 0.7765 MB / 451.9 MB, free: 32.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001145/0.2364, allocations: 2.416 MB / 454.3 MB, free: 31.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2364, allocations: 0 / 454.3 MB, free: 31.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2364, allocations: 0 / 454.3 MB, free: 31.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.404e-05/0.2364, allocations: 0 / 454.3 MB, free: 31.64 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.003236/0.2397, allocations: 1.783 MB / 456.1 MB, free: 30.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.2397, allocations: 12.88 kB / 456.1 MB, free: 30.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002185/0.2399, allocations: 184.1 kB / 456.3 MB, free: 30.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002279/0.2402, allocations: 151.4 kB / 456.4 MB, free: 30.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.2412, allocations: 0.8603 MB / 457.3 MB, free: 29.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.15e-05/0.2413, allocations: 118.4 kB / 457.4 MB, free: 29.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002227/0.2416, allocations: 138.5 kB / 457.5 MB, free: 29.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00237/0.2439, allocations: 1.589 MB / 459.1 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.244, allocations: 1.375 kB / 459.1 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/0.2441, allocations: 49.09 kB / 459.2 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.2441, allocations: 28.34 kB / 459.2 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0021/0.2462, allocations: 1.427 MB / 460.6 MB, free: 28.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008407/0.2547, allocations: 7.203 MB / 467.8 MB, free: 23.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004548/0.2592, allocations: 1.887 MB / 469.7 MB, free: 23.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009796/0.2602, allocations: 0.7227 MB / 470.4 MB, free: 23.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.469e-05/0.2603, allocations: 15.73 kB / 470.5 MB, free: 23.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.2603, allocations: 48.28 kB / 470.5 MB, free: 22.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.654e-06/0.2603, allocations: 0 / 470.5 MB, free: 22.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.006362/0.2667, allocations: 4.001 MB / 474.5 MB, free: 20.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.914e-05/0.2667, allocations: 68.09 kB / 474.6 MB, free: 20.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007474/0.2675, allocations: 0.6881 MB / 475.3 MB, free: 20.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.409e-05/0.2676, allocations: 40.61 kB / 475.3 MB, free: 20.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002355/0.2678, allocations: 0.507 MB / 475.8 MB, free: 19.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002815/0.2681, allocations: 409.8 kB / 476.2 MB, free: 19.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001672/0.2683, allocations: 111 kB / 476.3 MB, free: 19.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.2684, allocations: 414.5 kB / 476.7 MB, free: 18.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00121/0.2696, allocations: 0.8465 MB / 477.6 MB, free: 18.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001223/0.2709, allocations: 1.006 MB / 478.6 MB, free: 17.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0122/0.2831, allocations: 4.606 MB / 483.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.2831, allocations: 4 kB / 483.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003588/0.2867, allocations: 2.488 MB / 485.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.2867, allocations: 8 kB / 485.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.2867, allocations: 4 kB / 485.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00151/0.2882, allocations: 0.5551 MB / 486.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001572/0.2898, allocations: 391.5 kB / 486.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01246/0.3023, allocations: 21.45 MB / 0.4962 GB, free: 4.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.3033, allocations: 154.8 kB / 0.4963 GB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/0.3035, allocations: 51.98 kB / 0.4964 GB, free: 4.195 MB / 366.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: 23 * 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 (157): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 15 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%), (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.0006989/0.3042, allocations: 421.4 kB / 0.4968 GB, free: 3.773 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001753/0.3044, allocations: 90.88 kB / 0.4968 GB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00356/0.3079, allocations: 1.986 MB / 0.4988 GB, free: 1.633 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.3079, allocations: 12 kB / 0.4988 GB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.308, allocations: 7.938 kB / 0.4988 GB, free: 1.613 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.308, allocations: 3.984 kB / 0.4988 GB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005216/0.3132, allocations: 3.558 MB / 0.5023 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3132, allocations: 0 / 0.5023 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001969/0.3152, allocations: 335.6 kB / 0.5026 GB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001251/0.3164, allocations: 480.8 kB / 0.5031 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001241/0.3166, allocations: 59.97 kB / 0.5031 GB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01344/0.33, allocations: 20.59 MB / 0.5232 GB, free: 6.414 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.33, allocations: 4 kB / 0.5232 GB, free: 6.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00434/0.3344, allocations: 2.738 MB / 0.5259 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002231/0.3346, allocations: 191.8 kB / 0.5261 GB, free: 3.387 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001832/0.3348, allocations: 63.98 kB / 0.5261 GB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007791/0.3356, allocations: 75.75 kB / 0.5262 GB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002183/0.3358, allocations: 92.75 kB / 0.5263 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.806e-05/0.3359, allocations: 32 kB / 0.5263 GB, free: 3.129 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005586/0.3365, allocations: 487 kB / 0.5268 GB, free: 2.656 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3365, allocations: 4 kB / 0.5268 GB, free: 2.652 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001344/0.3378, allocations: 0.5028 MB / 0.5273 GB, free: 2.148 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 42 (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],delivery.fluidStream.T[1],delivery.fluidStream.T[2],delivery.fluidStream.T[3],delivery.fluidStream.T[4],delivery.fluidStream.T[5],delivery.wall.wall.T[1,1],delivery.wall.wall.T[1,2],delivery.wall.wall.T[1,3],delivery.wall.wall.T[2,1],delivery.wall.wall.T[2,2],delivery.wall.wall.T[2,3],delivery.wall.wall.T[3,1],delivery.wall.wall.T[3,2],delivery.wall.wall.T[3,3],delivery.wall.wall.T[4,1],delivery.wall.wall.T[4,2],delivery.wall.wall.T[4,3],delivery.wall.wall.T[5,1],delivery.wall.wall.T[5,2],delivery.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 (89): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 15 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%), (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.004618/0.3425, allocations: 3.359 MB / 0.5306 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003958/0.3464, allocations: 3.422 MB / 0.5339 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3464, allocations: 0 / 0.5339 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002533/0.349, allocations: 2.475 MB / 0.5363 GB, free: 8.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/0.3503, allocations: 304.2 kB / 0.5366 GB, free: 8.117 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02388/0.3742, allocations: 17.04 MB / 0.5533 GB, free: 6.562 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008791/0.3751, allocations: 1.266 MB / 0.5545 GB, free: 5.27 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009374/0.376, allocations: 355.6 kB / 0.5548 GB, free: 4.918 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006737/0.3767, allocations: 455.3 kB / 0.5553 GB, free: 4.473 MB / 430.1 MB Notification: Performance of SimCode: time 4.6e-07/0.3767, allocations: 3.938 kB / 0.5553 GB, free: 4.469 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.604/1.981, allocations: 32.43 MB / 0.587 GB, free: 4.43 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002315/1.981, allocations: 241.5 kB / 0.5872 GB, free: 4.172 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.925/4.906, allocations: 0 / 0.5872 GB, free: 4.172 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe 2>&1)