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.005091/0.005091, allocations: 96.19 kB / 15.73 MB, free: 6.043 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.00123/0.00123, allocations: 204.2 kB / 16.68 MB, free: 5.969 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.379/1.379, 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.1998/0.1998, allocations: 22.36 MB / 312.9 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003108/0.003109, allocations: 72.62 kB / 436.6 MB, free: 34.03 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1263, allocations: 54.96 MB / 491.5 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.005355/0.1317, allocations: 4.404 MB / 495.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002635/0.1344, allocations: 1.259 MB / 497.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003485/0.1347, allocations: 19.94 kB / 497.2 MB, free: 12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003506/0.1351, allocations: 166.6 kB / 497.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006988/0.1358, allocations: 425.5 kB / 497.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007172/0.1366, allocations: 319.5 kB / 498.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002177/0.1387, allocations: 2.15 MB / 0.4885 GB, free: 8.949 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00183/0.1406, allocations: 1.59 MB / 0.4901 GB, free: 7.316 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009312/0.1415, allocations: 0.8222 MB / 0.4909 GB, free: 6.492 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001263/0.1428, allocations: 0.9738 MB / 0.4918 GB, free: 5.516 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003215/0.1431, allocations: 236 kB / 0.4921 GB, free: 5.285 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003613/0.1435, allocations: 239.9 kB / 0.4923 GB, free: 5.051 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00071/0.1442, allocations: 0.7015 MB / 0.493 GB, free: 4.348 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009765/0.1452, allocations: 0.9223 MB / 0.4939 GB, free: 3.422 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002421/0.1476, allocations: 2.601 MB / 0.4964 GB, free: 0.8125 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1476, allocations: 3.938 kB / 0.4964 GB, free: 0.8086 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1477, allocations: 4 kB / 0.4964 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.906e-05/0.1477, allocations: 0 / 0.4964 GB, free: 0.8047 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.004388/0.1521, allocations: 2.045 MB / 0.4984 GB, free: 14.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.1521, allocations: 8.031 kB / 0.4984 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002497/0.1524, allocations: 181.7 kB / 0.4986 GB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002752/0.1527, allocations: 160 kB / 0.4988 GB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001424/0.1541, allocations: 0.8647 MB / 0.4996 GB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/0.1542, allocations: 116.6 kB / 0.4997 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002366/0.1545, allocations: 140.3 kB / 0.4999 GB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002753/0.1572, allocations: 1.589 MB / 0.5014 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.017e-05/0.1573, allocations: 3.938 kB / 0.5014 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001394/0.1574, allocations: 48 kB / 0.5015 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.638e-05/0.1575, allocations: 28 kB / 0.5015 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00256/0.16, allocations: 1.419 MB / 0.5029 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01074/0.1708, allocations: 7.14 MB / 0.5098 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004921/0.1757, allocations: 1.886 MB / 0.5117 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001222/0.1769, allocations: 0.7284 MB / 0.5124 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.729e-05/0.177, allocations: 16.91 kB / 0.5124 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.454e-05/0.1771, allocations: 43.56 kB / 0.5125 GB, free: 15.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=102): time 2.324e-06/0.1771, allocations: 0.5625 kB / 0.5125 GB, free: 15.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=102): time 0.007485/0.1846, allocations: 3.94 MB / 0.5163 GB, free: 11.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.1846, allocations: 60.41 kB / 0.5164 GB, free: 11.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009918/0.1856, allocations: 0.6878 MB / 0.517 GB, free: 10.68 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.873e-05/0.1857, allocations: 45.7 kB / 0.5171 GB, free: 10.63 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004742/0.1862, allocations: 0.5123 MB / 0.5176 GB, free: 10.11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004715/0.1867, allocations: 436.3 kB / 0.518 GB, free: 9.684 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000438/0.1871, allocations: 247.6 kB / 0.5182 GB, free: 9.438 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002204/0.1874, allocations: 410.7 kB / 0.5186 GB, free: 9.027 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001353/0.1887, allocations: 0.8429 MB / 0.5194 GB, free: 8.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001463/0.1902, allocations: 1.001 MB / 0.5204 GB, free: 7.117 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01332/0.2035, allocations: 4.451 MB / 0.5248 GB, free: 2.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.2036, allocations: 4 kB / 0.5248 GB, free: 2.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005258/0.2088, allocations: 2.469 MB / 0.5272 GB, free: 64 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.2089, allocations: 11.98 kB / 0.5272 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/0.2089, allocations: 4 kB / 0.5272 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001907/0.2108, allocations: 0.5356 MB / 0.5277 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001763/0.2126, allocations: 395.5 kB / 0.5281 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02091/0.2335, allocations: 23.05 MB / 0.5506 GB, free: 5.863 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/0.2349, allocations: 143.1 kB / 0.5507 GB, free: 5.723 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002974/0.2352, allocations: 48 kB / 0.5508 GB, free: 5.676 MB / 430.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.001053/0.2363, allocations: 434.6 kB / 0.5512 GB, free: 5.242 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003137/0.2366, allocations: 95.39 kB / 0.5513 GB, free: 5.148 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004093/0.2407, allocations: 1.979 MB / 0.5532 GB, free: 3.113 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.2407, allocations: 15.94 kB / 0.5532 GB, free: 3.098 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.12e-05/0.2407, allocations: 4 kB / 0.5532 GB, free: 3.094 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.2407, allocations: 7.969 kB / 0.5533 GB, free: 3.086 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006418/0.2472, allocations: 3.551 MB / 0.5567 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.2472, allocations: 0 / 0.5567 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00196/0.2492, allocations: 335.6 kB / 0.557 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001424/0.2506, allocations: 480.7 kB / 0.5575 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001634/0.2508, allocations: 67.97 kB / 0.5576 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01946/0.2703, allocations: 22.17 MB / 0.5792 GB, free: 6.223 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.2703, allocations: 3.984 kB / 0.5792 GB, free: 6.219 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005731/0.276, allocations: 2.739 MB / 0.5819 GB, free: 3.395 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004001/0.2765, allocations: 200.2 kB / 0.5821 GB, free: 3.18 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003011/0.2768, allocations: 67.91 kB / 0.5821 GB, free: 3.113 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008722/0.2777, allocations: 59.94 kB / 0.5822 GB, free: 3.055 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003141/0.278, allocations: 96.75 kB / 0.5823 GB, free: 2.961 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/0.2781, allocations: 31.98 kB / 0.5823 GB, free: 2.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000722/0.2788, allocations: 483 kB / 0.5828 GB, free: 2.461 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.984e-06/0.2788, allocations: 0 / 0.5828 GB, free: 2.461 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001627/0.2805, allocations: 0.5032 MB / 0.5833 GB, free: 1.957 MB / 462.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.2388/0.5193, allocations: 3.349 MB / 0.5865 GB, free: 96.45 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003707/0.523, allocations: 3.433 MB / 0.5899 GB, free: 94.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.523, allocations: 0 / 0.5899 GB, free: 94.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002011/0.5251, allocations: 2.467 MB / 0.5923 GB, free: 93.15 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.5263, allocations: 314.9 kB / 0.5926 GB, free: 93.14 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02146/0.5477, allocations: 15.51 MB / 0.6078 GB, free: 86.13 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006616/0.5484, allocations: 1.269 MB / 0.609 GB, free: 85.33 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0008545/0.5493, allocations: 350.9 kB / 0.6093 GB, free: 85.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005703/0.5499, allocations: 459.4 kB / 0.6098 GB, free: 84.95 MB / 462.1 MB Notification: Performance of SimCode: time 8.31e-07/0.5499, allocations: 0 / 0.6098 GB, free: 84.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1259/0.6758, allocations: 34.44 MB / 0.6434 GB, free: 54.08 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.65/14.32, allocations: 7.688 kB / 0.6434 GB, free: 54.07 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)