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.001346/0.001346, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.001622/0.001622, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.554/1.554, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.1024/0.1024, allocations: 22.93 MB / 332.5 MB, free: 2.605 MB / 254.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.002447/0.002447, allocations: 64.59 kB / 466.7 MB, free: 32.24 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1086, allocations: 59.27 MB / 0.5137 GB, free: 13.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_002): time 0.005147/0.1138, allocations: 3.362 MB / 0.517 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002046/0.1158, allocations: 0.9781 MB / 0.5179 GB, free: 9.609 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003212/0.1162, allocations: 11.88 kB / 0.5179 GB, free: 9.598 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003026/0.1165, allocations: 107.1 kB / 0.518 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006004/0.1171, allocations: 266.4 kB / 0.5183 GB, free: 9.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006069/0.1177, allocations: 187.7 kB / 0.5185 GB, free: 9.047 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001486/0.1192, allocations: 1.229 MB / 0.5197 GB, free: 7.816 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001104/0.1203, allocations: 0.7496 MB / 0.5204 GB, free: 7.055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008197/0.1211, allocations: 490.8 kB / 0.5209 GB, free: 6.574 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009466/0.122, allocations: 0.5842 MB / 0.5214 GB, free: 5.988 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002609/0.1223, allocations: 132 kB / 0.5216 GB, free: 5.859 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002623/0.1226, allocations: 132 kB / 0.5217 GB, free: 5.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004547/0.123, allocations: 403 kB / 0.5221 GB, free: 5.332 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007481/0.1238, allocations: 0.5369 MB / 0.5226 GB, free: 4.793 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001612/0.1254, allocations: 1.468 MB / 0.524 GB, free: 3.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1254, allocations: 0 / 0.524 GB, free: 3.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1254, allocations: 0 / 0.524 GB, free: 3.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.671e-05/0.1254, allocations: 4 kB / 0.524 GB, free: 3.316 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.003446/0.1289, allocations: 1.306 MB / 0.5253 GB, free: 1.961 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.1289, allocations: 12.62 kB / 0.5253 GB, free: 1.949 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.384e-05/0.1289, allocations: 18.19 kB / 0.5253 GB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001948/0.1291, allocations: 126.6 kB / 0.5255 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000212/0.1293, allocations: 88.42 kB / 0.5255 GB, free: 1.711 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009448/0.1303, allocations: 0.5624 MB / 0.5261 GB, free: 1.117 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.734e-05/0.1304, allocations: 92.2 kB / 0.5262 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001607/0.1305, allocations: 84.06 kB / 0.5263 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/0.1322, allocations: 0.9287 MB / 0.5272 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.003e-05/0.1322, allocations: 0 / 0.5272 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001219/0.1324, allocations: 28.05 kB / 0.5272 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.1324, allocations: 19.94 kB / 0.5272 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/0.1338, allocations: 0.8043 MB / 0.528 GB, free: 15.15 MB / 398.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.006931/0.1407, allocations: 4.011 MB / 0.5319 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003055/0.1438, allocations: 1.002 MB / 0.5329 GB, free: 9.844 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007295/0.1445, allocations: 414.4 kB / 0.5333 GB, free: 9.438 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.828e-05/0.1446, allocations: 12.48 kB / 0.5333 GB, free: 9.426 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.055e-05/0.1446, allocations: 43.06 kB / 0.5333 GB, free: 9.371 MB / 398.1 MB Notification: Performance of pre-optimization done (n=58): time 2.364e-06/0.1446, allocations: 0 / 0.5333 GB, free: 9.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=58): time 0.004884/0.1495, allocations: 2.355 MB / 0.5356 GB, free: 6.793 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.1496, allocations: 59.97 kB / 0.5357 GB, free: 6.723 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00078/0.1503, allocations: 425.6 kB / 0.5361 GB, free: 6.301 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.443e-05/0.1504, allocations: 37.7 kB / 0.5361 GB, free: 6.258 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003139/0.1507, allocations: 328.7 kB / 0.5365 GB, free: 5.934 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003289/0.1511, allocations: 238 kB / 0.5367 GB, free: 5.699 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002967/0.1513, allocations: 126.7 kB / 0.5368 GB, free: 5.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002212/0.1516, allocations: 366.8 kB / 0.5372 GB, free: 5.203 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007991/0.1524, allocations: 460.6 kB / 0.5376 GB, free: 4.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008275/0.1532, allocations: 0.4965 MB / 0.5381 GB, free: 4.234 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00804/0.1612, allocations: 2.36 MB / 0.5404 GB, free: 1.848 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.206e-05/0.1612, allocations: 4 kB / 0.5404 GB, free: 1.844 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.003149/0.1644, allocations: 1.345 MB / 0.5417 GB, free: 472 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.016e-05/0.1644, allocations: 8 kB / 0.5417 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.1644, allocations: 0 / 0.5417 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001231/0.1657, allocations: 340.3 kB / 0.542 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000987/0.1667, allocations: 187.8 kB / 0.5422 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01377/0.1804, allocations: 15.15 MB / 0.557 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006992/0.1811, allocations: 75.55 kB / 0.5571 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.366e-05/0.1812, allocations: 20 kB / 0.5571 GB, free: 15.23 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: 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.000526/0.1817, allocations: 282.5 kB / 0.5574 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.1818, allocations: 59.61 kB / 0.5574 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002327/0.1842, allocations: 1.139 MB / 0.5585 GB, free: 13.71 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.156e-06/0.1842, allocations: 8 kB / 0.5585 GB, free: 13.71 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1842, allocations: 0 / 0.5585 GB, free: 13.71 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.1842, allocations: 7.922 kB / 0.5586 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003594/0.1878, allocations: 2.149 MB / 0.5606 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.1878, allocations: 0 / 0.5606 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.1889, allocations: 167.8 kB / 0.5608 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009198/0.1898, allocations: 304.4 kB / 0.5611 GB, free: 10.96 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.161e-05/0.1899, allocations: 31.98 kB / 0.5611 GB, free: 10.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01201/0.2019, allocations: 14.72 MB / 0.5755 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2019, allocations: 0 / 0.5755 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003023/0.2049, allocations: 1.596 MB / 0.5771 GB, free: 9.148 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/0.2051, allocations: 148.8 kB / 0.5772 GB, free: 8.984 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.2052, allocations: 39.92 kB / 0.5772 GB, free: 8.945 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004378/0.2056, allocations: 27.95 kB / 0.5773 GB, free: 8.918 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/0.2058, allocations: 56.44 kB / 0.5773 GB, free: 8.863 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.312e-05/0.2059, allocations: 19.98 kB / 0.5773 GB, free: 8.844 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003667/0.2062, allocations: 291.2 kB / 0.5776 GB, free: 8.559 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2062, allocations: 4 kB / 0.5776 GB, free: 8.555 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009849/0.2072, allocations: 299.5 kB / 0.5779 GB, free: 8.262 MB / 446.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.00318/0.2104, allocations: 2.178 MB / 0.58 GB, free: 6.016 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002856/0.2133, allocations: 2.005 MB / 0.582 GB, free: 3.887 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/0.2133, allocations: 0 / 0.582 GB, free: 3.887 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00188/0.2151, allocations: 1.549 MB / 0.5835 GB, free: 2.211 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008164/0.216, allocations: 169.3 kB / 0.5837 GB, free: 2.039 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2456/0.4616, allocations: 8.86 MB / 0.5923 GB, free: 66.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006073/0.4622, allocations: 1.016 MB / 0.5933 GB, free: 65.94 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005555/0.4627, allocations: 166.3 kB / 0.5935 GB, free: 65.94 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003827/0.4631, allocations: 257.7 kB / 0.5937 GB, free: 65.74 MB / 446.1 MB Notification: Performance of SimCode: time 9.71e-07/0.4631, allocations: 3.781 kB / 0.5937 GB, free: 65.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07877/0.5419, allocations: 19.9 MB / 0.6132 GB, free: 58.31 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.15, allocations: 3.984 kB / 0.6132 GB, free: 58.3 MB / 446.1 MB " [Timeout remaining time 648] (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 os._exit(0), Time elapsed: 15.088333217951003] Failed to read output from testmodel.py, exit status != 0: 12.310252078983467 12.327334241 12.198661375 Calling exit ...