Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.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_lim,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim",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.004741/0.004741, allocations: 96.72 kB / 15.73 MB, free: 6 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.001253/0.001253, allocations: 186.1 kB / 16.67 MB, free: 5.93 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1938/0.1938, allocations: 22.35 MB / 312.9 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 62.17 kB / 436.6 MB, free: 34.03 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09717/0.09919, allocations: 54.97 MB / 491.6 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim): time 0.004817/0.104, allocations: 4.424 MB / 496 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002347/0.1064, allocations: 1.267 MB / 497.2 MB, free: 11.97 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002997/0.1067, allocations: 15.88 kB / 497.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003461/0.1071, allocations: 166.5 kB / 497.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006987/0.1078, allocations: 429.5 kB / 497.8 MB, free: 11.37 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007596/0.1086, allocations: 319.5 kB / 498.2 MB, free: 11.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002153/0.1107, allocations: 2.177 MB / 0.4886 GB, free: 8.875 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001884/0.1126, allocations: 1.602 MB / 0.4902 GB, free: 7.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009433/0.1136, allocations: 0.8339 MB / 0.491 GB, free: 6.395 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001257/0.1149, allocations: 0.9737 MB / 0.4919 GB, free: 5.418 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003099/0.1152, allocations: 236 kB / 0.4922 GB, free: 5.188 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003511/0.1155, allocations: 232 kB / 0.4924 GB, free: 4.961 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006533/0.1162, allocations: 0.6898 MB / 0.4931 GB, free: 4.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009756/0.1172, allocations: 0.9145 MB / 0.494 GB, free: 3.352 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002455/0.1196, allocations: 2.578 MB / 0.4965 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1197, allocations: 0 / 0.4965 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.1197, allocations: 0 / 0.4965 GB, free: 0.7656 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.203e-05/0.1197, allocations: 3.938 kB / 0.4965 GB, free: 0.7617 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.004575/0.1243, allocations: 2.041 MB / 0.4985 GB, free: 14.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.1243, allocations: 12.03 kB / 0.4985 GB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002538/0.1246, allocations: 189.7 kB / 0.4987 GB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000284/0.1249, allocations: 156 kB / 0.4988 GB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001322/0.1262, allocations: 0.8686 MB / 0.4997 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.1264, allocations: 116.6 kB / 0.4998 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002358/0.1266, allocations: 136.3 kB / 0.4999 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002751/0.1294, allocations: 1.593 MB / 0.5015 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.927e-05/0.1294, allocations: 0 / 0.5015 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001357/0.1295, allocations: 48 kB / 0.5015 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.791e-05/0.1296, allocations: 32 kB / 0.5015 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00243/0.132, allocations: 1.403 MB / 0.5029 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01041/0.1424, allocations: 7.113 MB / 0.5098 GB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004847/0.1473, allocations: 1.874 MB / 0.5117 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001255/0.1486, allocations: 0.743 MB / 0.5124 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.881e-05/0.1487, allocations: 13 kB / 0.5124 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/0.1487, allocations: 51.5 kB / 0.5125 GB, free: 15.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=103): time 3.106e-06/0.1487, allocations: 0 / 0.5125 GB, free: 15.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=103): time 0.007486/0.1562, allocations: 3.925 MB / 0.5163 GB, free: 11.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/0.1563, allocations: 68.34 kB / 0.5164 GB, free: 11.37 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009293/0.1572, allocations: 0.6762 MB / 0.517 GB, free: 10.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.104e-05/0.1573, allocations: 45.7 kB / 0.5171 GB, free: 10.63 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004213/0.1578, allocations: 0.5316 MB / 0.5176 GB, free: 10.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000442/0.1582, allocations: 432.4 kB / 0.518 GB, free: 9.672 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004585/0.1587, allocations: 247.5 kB / 0.5182 GB, free: 9.426 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002287/0.1589, allocations: 410.7 kB / 0.5186 GB, free: 9.016 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/0.1603, allocations: 0.8429 MB / 0.5194 GB, free: 8.168 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001472/0.1618, allocations: 0.9967 MB / 0.5204 GB, free: 7.109 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0138/0.1756, allocations: 4.459 MB / 0.5248 GB, free: 2.574 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.1756, allocations: 0 / 0.5248 GB, free: 2.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004692/0.1803, allocations: 2.473 MB / 0.5272 GB, free: 48 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.1803, allocations: 8 kB / 0.5272 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.1804, allocations: 8.031 kB / 0.5272 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001799/0.1822, allocations: 0.5355 MB / 0.5277 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/0.184, allocations: 407.5 kB / 0.5281 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01989/0.2039, allocations: 23.05 MB / 0.5506 GB, free: 5.832 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001252/0.2052, allocations: 147 kB / 0.5508 GB, free: 5.688 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/0.2053, allocations: 51.98 kB / 0.5508 GB, free: 5.637 MB / 430.1 MB Warning: Assuming fixed start value for the following 3 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 CH.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) 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 (160): * Single equations (assignments): 145 * 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.0007945/0.2061, allocations: 441.8 kB / 0.5512 GB, free: 5.195 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001894/0.2063, allocations: 95.39 kB / 0.5513 GB, free: 5.102 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003816/0.2101, allocations: 1.983 MB / 0.5533 GB, free: 3.062 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.2102, allocations: 12 kB / 0.5533 GB, free: 3.051 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/0.2102, allocations: 4 kB / 0.5533 GB, free: 3.047 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.2102, allocations: 7.969 kB / 0.5533 GB, free: 3.039 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006054/0.2163, allocations: 3.713 MB / 0.5569 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.2163, allocations: 48 / 0.5569 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001977/0.2183, allocations: 347.6 kB / 0.5572 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001367/0.2196, allocations: 480.8 kB / 0.5577 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001407/0.2198, allocations: 67.97 kB / 0.5578 GB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0179/0.2377, allocations: 22.16 MB / 0.5794 GB, free: 6.012 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/0.2377, allocations: 11.91 kB / 0.5794 GB, free: 6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005039/0.2428, allocations: 2.737 MB / 0.5821 GB, free: 3.176 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003149/0.2431, allocations: 196.2 kB / 0.5823 GB, free: 2.965 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/0.2433, allocations: 67.97 kB / 0.5824 GB, free: 2.898 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007123/0.244, allocations: 51.94 kB / 0.5824 GB, free: 2.848 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00031/0.2444, allocations: 92.75 kB / 0.5825 GB, free: 2.758 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.465e-05/0.2445, allocations: 35.98 kB / 0.5825 GB, free: 2.723 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006539/0.2451, allocations: 487 kB / 0.583 GB, free: 2.246 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2451, allocations: 0 / 0.583 GB, free: 2.246 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00144/0.2466, allocations: 0.4994 MB / 0.5835 GB, free: 1.746 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 43 (CH.Tfo,CH.Ec,CH.xpi,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 (92): * Single equations (assignments): 77 * 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.2273/0.4739, allocations: 3.344 MB / 0.5867 GB, free: 96.51 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003617/0.4775, allocations: 3.432 MB / 0.5901 GB, free: 94.85 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.4776, allocations: 4.594 kB / 0.5901 GB, free: 94.85 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00202/0.4796, allocations: 2.467 MB / 0.5925 GB, free: 93.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.4808, allocations: 306.2 kB / 0.5928 GB, free: 93.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0224/0.5032, allocations: 15.52 MB / 0.608 GB, free: 86.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006833/0.504, allocations: 1.274 MB / 0.6092 GB, free: 85.34 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009463/0.5049, allocations: 367.7 kB / 0.6096 GB, free: 85.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005728/0.5055, allocations: 476.4 kB / 0.61 GB, free: 84.94 MB / 462.1 MB Notification: Performance of SimCode: time 7.01e-07/0.5055, allocations: 0 / 0.61 GB, free: 84.94 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08547/0.591, allocations: 34.62 MB / 0.6438 GB, free: 53.63 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.55, allocations: 11.81 kB / 0.6438 GB, free: 53.62 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_lim.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_lim.pipe 2>&1)