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.00136/0.00136, allocations: 117.8 kB / 16.37 MB, free: 6.016 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.001415/0.001415, allocations: 189.7 kB / 17.3 MB, free: 5.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.421/1.421, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09635/0.09635, allocations: 22.32 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 67.33 kB / 382.3 MB, free: 41.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09437/0.09569, allocations: 54.96 MB / 437.2 MB, free: 12.26 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.003084/0.09881, allocations: 1.775 MB / 439 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002634/0.1015, allocations: 1.736 MB / 440.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001752/0.1017, allocations: 4 kB / 440.7 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005829/0.1023, allocations: 202.8 kB / 440.9 MB, free: 8.523 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004634/0.1027, allocations: 254.9 kB / 441.2 MB, free: 8.273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006259/0.1034, allocations: 411.3 kB / 441.6 MB, free: 7.871 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001161/0.1046, allocations: 1.194 MB / 442.8 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002447/0.1048, allocations: 112.7 kB / 442.9 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005645/0.1054, allocations: 0.4907 MB / 443.4 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005921/0.106, allocations: 0.5216 MB / 443.9 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.896e-05/0.1061, allocations: 56 kB / 444 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.805e-05/0.1062, allocations: 56 kB / 444 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002657/0.1065, allocations: 263.2 kB / 444.3 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002698/0.1067, allocations: 294.1 kB / 444.6 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000651/0.1074, allocations: 0.6537 MB / 445.2 MB, free: 4.234 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.1074, allocations: 0 / 445.2 MB, free: 4.234 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.1074, allocations: 0 / 445.2 MB, free: 4.234 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.1074, allocations: 4 kB / 445.2 MB, free: 4.23 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.004526/0.112, allocations: 1.507 MB / 446.7 MB, free: 2.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.112, allocations: 12.03 kB / 446.7 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001604/0.1122, allocations: 72 kB / 446.8 MB, free: 2.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002472/0.1147, allocations: 0.9058 MB / 447.7 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.951e-05/0.1147, allocations: 16.94 kB / 447.7 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.199e-05/0.1148, allocations: 40.22 kB / 447.8 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006116/0.1154, allocations: 380.6 kB / 448.1 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.1155, allocations: 4 kB / 448.1 MB, free: 1.207 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.575e-05/0.1155, allocations: 12 kB / 448.2 MB, free: 1.195 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.1155, allocations: 4 kB / 448.2 MB, free: 1.191 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000766/0.1163, allocations: 469.9 kB / 448.6 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002259/0.1186, allocations: 1.256 MB / 449.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001825/0.1204, allocations: 0.7976 MB / 450.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003666/0.1208, allocations: 258 kB / 450.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.819e-05/0.1208, allocations: 4.438 kB / 450.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.1209, allocations: 39 kB / 451 MB, free: 14.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 2.254e-06/0.1209, allocations: 0 / 451 MB, free: 14.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=48): time 0.003182/0.124, allocations: 1.517 MB / 452.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.689e-05/0.1241, allocations: 55.84 kB / 452.5 MB, free: 12.63 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002424/0.1266, allocations: 1.039 MB / 453.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.963e-05/0.1266, allocations: 33.7 kB / 453.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002047/0.1268, allocations: 297.9 kB / 453.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.127, allocations: 181.3 kB / 454.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.1271, allocations: 82.12 kB / 454.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.1272, allocations: 329.9 kB / 454.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000332/0.1276, allocations: 220.8 kB / 454.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000323/0.1279, allocations: 224.4 kB / 454.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003987/0.1319, allocations: 1.408 MB / 456.3 MB, free: 8.801 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1319, allocations: 0 / 456.3 MB, free: 8.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001559/0.1335, allocations: 0.8954 MB / 457.2 MB, free: 7.887 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.1335, allocations: 4 kB / 457.2 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.1335, allocations: 4 kB / 457.2 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006299/0.1342, allocations: 219.2 kB / 457.4 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003308/0.1345, allocations: 79.84 kB / 457.5 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005287/0.1398, allocations: 6.412 MB / 463.9 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001177/0.141, allocations: 187.4 kB / 464.1 MB, free: 424 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.08e-05/0.1411, allocations: 15.94 kB / 464.1 MB, free: 408 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.0004682/0.1415, allocations: 250.4 kB / 464.4 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.1417, allocations: 67.16 kB / 464.4 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002249/0.1419, allocations: 103.2 kB / 464.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.142, allocations: 11.94 kB / 464.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-05/0.142, allocations: 0 / 464.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.142, allocations: 3.938 kB / 464.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008029/0.1428, allocations: 0.6416 MB / 465.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.1428, allocations: 7.938 kB / 465.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003764/0.1432, allocations: 55.97 kB / 465.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000598/0.1438, allocations: 211.2 kB / 465.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.097e-05/0.1439, allocations: 23.98 kB / 465.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004819/0.1487, allocations: 6.408 MB / 471.9 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.1487, allocations: 4.219 kB / 471.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001857/0.1506, allocations: 1.185 MB / 473.1 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002422/0.1508, allocations: 176.1 kB / 473.3 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.774e-05/0.1509, allocations: 15.98 kB / 473.3 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.152, allocations: 155.8 kB / 473.4 MB, free: 6.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.1521, allocations: 40.31 kB / 473.5 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-05/0.1522, allocations: 16 kB / 473.5 MB, free: 6.363 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002279/0.1545, allocations: 0.8227 MB / 474.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1545, allocations: 0 / 474.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006507/0.1551, allocations: 140 kB / 474.4 MB, free: 5.402 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.0001972/0.1553, allocations: 127.7 kB / 474.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001683/0.157, allocations: 1.059 MB / 475.6 MB, free: 4.156 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.157, allocations: 0 / 475.6 MB, free: 4.156 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009425/0.158, allocations: 0.7666 MB / 476.4 MB, free: 3.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006623/0.1587, allocations: 143.3 kB / 476.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002413/0.1611, allocations: 1.494 MB / 478 MB, free: 1.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005176/0.1616, allocations: 0.9843 MB / 479 MB, free: 0.668 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003289/0.162, allocations: 156.7 kB / 479.2 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001492/0.1621, allocations: 39.44 kB / 479.2 MB, free: 484 kB / 350.1 MB Notification: Performance of SimCode: time 5.82e-07/0.1621, allocations: 0 / 479.2 MB, free: 484 kB / 350.1 MB Notification: Performance of Templates: time 0.0157/0.1778, allocations: 8.577 MB / 487.8 MB, free: 7.941 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 gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe 2>&1)