Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.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: translateModel(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen") translateModel(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 98.17 kB / 16.35 MB, free: 5.824 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.001126/0.001126, allocations: 194.6 kB / 17.29 MB, free: 5.48 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.341/1.341, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09057/0.09057, allocations: 22.33 MB / 313.5 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 63.7 kB / 382.2 MB, free: 40.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09987/0.1017, allocations: 54.97 MB / 437.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen): time 0.003455/0.1052, allocations: 1.761 MB / 439 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002544/0.1078, allocations: 1.74 MB / 440.7 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002009/0.108, allocations: 8 kB / 440.7 MB, free: 8.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005651/0.1086, allocations: 210.7 kB / 440.9 MB, free: 8.465 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004661/0.1091, allocations: 250.9 kB / 441.2 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006301/0.1098, allocations: 407.3 kB / 441.6 MB, free: 7.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001071/0.1109, allocations: 1.194 MB / 442.8 MB, free: 6.625 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002191/0.1111, allocations: 120.7 kB / 442.9 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004794/0.1116, allocations: 490.5 kB / 443.4 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005956/0.1122, allocations: 0.5216 MB / 443.9 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.594e-05/0.1123, allocations: 56 kB / 443.9 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.459e-05/0.1124, allocations: 56 kB / 444 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002644/0.1126, allocations: 267.1 kB / 444.3 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000251/0.1129, allocations: 290.1 kB / 444.5 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005557/0.1135, allocations: 0.6615 MB / 445.2 MB, free: 4.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.1135, allocations: 0 / 445.2 MB, free: 4.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1135, allocations: 3.938 kB / 445.2 MB, free: 4.176 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.899e-06/0.1135, allocations: 0 / 445.2 MB, free: 4.176 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.004331/0.1178, allocations: 1.511 MB / 446.7 MB, free: 2.613 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.1179, allocations: 12.03 kB / 446.7 MB, free: 2.602 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001346/0.118, allocations: 76 kB / 446.8 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00248/0.1205, allocations: 0.8941 MB / 447.7 MB, free: 1.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/0.1206, allocations: 24.94 kB / 447.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.229e-05/0.1206, allocations: 40.22 kB / 447.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000596/0.1212, allocations: 368.6 kB / 448.1 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.1213, allocations: 7.984 kB / 448.1 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.377e-05/0.1213, allocations: 8 kB / 448.1 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.1213, allocations: 8 kB / 448.1 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007537/0.1221, allocations: 461.9 kB / 448.6 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002253/0.1243, allocations: 1.264 MB / 449.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001771/0.1261, allocations: 0.7937 MB / 450.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003755/0.1265, allocations: 262 kB / 450.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.871e-05/0.1266, allocations: 4.438 kB / 450.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.61e-05/0.1266, allocations: 39 kB / 450.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 3.486e-06/0.1266, allocations: 0 / 450.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=48): time 0.003318/0.1299, allocations: 1.513 MB / 452.5 MB, free: 12.65 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/0.13, allocations: 59.84 kB / 452.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002457/0.1325, allocations: 1.039 MB / 453.6 MB, free: 11.53 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.89e-05/0.1325, allocations: 33.7 kB / 453.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002708/0.1328, allocations: 297.9 kB / 453.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001604/0.1329, allocations: 181.3 kB / 454.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001837/0.1331, allocations: 82.12 kB / 454.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.1333, allocations: 326 kB / 454.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003384/0.1336, allocations: 220.8 kB / 454.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003435/0.134, allocations: 220.4 kB / 454.9 MB, free: 10.17 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003953/0.1379, allocations: 1.412 MB / 456.3 MB, free: 8.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.1379, allocations: 0 / 456.3 MB, free: 8.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001593/0.1395, allocations: 0.8993 MB / 457.2 MB, free: 7.836 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.1396, allocations: 4 kB / 457.2 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.1396, allocations: 0 / 457.2 MB, free: 7.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006312/0.1402, allocations: 227.2 kB / 457.4 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003271/0.1406, allocations: 71.91 kB / 457.5 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005175/0.1457, allocations: 6.416 MB / 463.9 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00121/0.147, allocations: 187.4 kB / 464.1 MB, free: 372 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.589e-05/0.1471, allocations: 23.88 kB / 464.1 MB, free: 348 kB / 334.1 MB Warning: Assuming fixed start value for the following 15 variables: Sf4.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] S4.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P4.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] C4.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] C4.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] C3.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] C3.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P3.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] S3.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] C2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] S2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] C1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] S1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004431/0.1475, allocations: 250.4 kB / 464.4 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.1476, allocations: 67.16 kB / 464.4 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002019/0.1478, allocations: 99.16 kB / 464.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.1479, allocations: 4 kB / 464.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.694e-05/0.1479, allocations: 11.94 kB / 464.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.1479, allocations: 3.984 kB / 464.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007178/0.1486, allocations: 0.6339 MB / 465.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1486, allocations: 0 / 465.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003763/0.149, allocations: 55.97 kB / 465.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005915/0.1496, allocations: 219.2 kB / 465.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.716e-05/0.1497, allocations: 19.98 kB / 465.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004809/0.1545, allocations: 6.404 MB / 471.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1545, allocations: 4.172 kB / 471.9 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001858/0.1564, allocations: 1.189 MB / 473.1 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002234/0.1566, allocations: 180.1 kB / 473.2 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.631e-05/0.1567, allocations: 16 kB / 473.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/0.1578, allocations: 159.8 kB / 473.4 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.1579, allocations: 40.33 kB / 473.5 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.51e-05/0.1579, allocations: 19.98 kB / 473.5 MB, free: 6.305 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002078/0.16, allocations: 0.8227 MB / 474.3 MB, free: 5.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.16, allocations: 0 / 474.3 MB, free: 5.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000542/0.1606, allocations: 136 kB / 474.4 MB, free: 5.348 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 15 (P1.x_scaled[1],S1.x_scaled[1],C1.x_scaled[1],S2.x_scaled[1],C2.x_scaled[1],P2.x_scaled[1],S3.x_scaled[1],P3.x_scaled[1],C3.x_scaled[1],C3.x_scaled[2],C4.x_scaled[1],C4.x_scaled[2],P4.x_scaled[1],S4.x_scaled[1],Sf4.x_scaled[1]) * 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 (36): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001696/0.1608, allocations: 131.6 kB / 474.6 MB, free: 5.207 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001584/0.1624, allocations: 1.059 MB / 475.6 MB, free: 4.098 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1624, allocations: 0 / 475.6 MB, free: 4.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009452/0.1633, allocations: 0.7627 MB / 476.4 MB, free: 3.281 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006888/0.164, allocations: 131.4 kB / 476.5 MB, free: 3.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002308/0.1663, allocations: 1.5 MB / 478 MB, free: 1.629 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004833/0.1668, allocations: 0.9804 MB / 479 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003024/0.1671, allocations: 152.7 kB / 479.1 MB, free: 480 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.1673, allocations: 43.42 kB / 479.2 MB, free: 436 kB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1673, allocations: 4 kB / 479.2 MB, free: 432 kB / 350.1 MB Notification: Performance of Templates: time 0.0143/0.1816, allocations: 8.577 MB / 487.8 MB, free: 7.891 MB / 366.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.sim & ./AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe 2>&1)