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.001267/0.001267, allocations: 105 kB / 16.41 MB, free: 6.5 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.001269/0.001269, allocations: 187 kB / 17.34 MB, free: 5.742 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.294/1.294, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09011/0.09011, allocations: 22.32 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 63.89 kB / 437.7 MB, free: 11.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09322/0.09443, allocations: 54.95 MB / 492.7 MB, free: 4.73 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen): time 0.002914/0.09739, allocations: 1.769 MB / 494.5 MB, free: 2.953 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002458/0.09987, allocations: 1.732 MB / 496.2 MB, free: 1.207 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003052/0.1002, allocations: 11.94 kB / 496.2 MB, free: 1.195 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005993/0.1008, allocations: 206.8 kB / 496.4 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000604/0.1015, allocations: 246.9 kB / 496.6 MB, free: 0.75 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007568/0.1022, allocations: 415.3 kB / 497 MB, free: 352 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001271/0.1035, allocations: 1.19 MB / 498.2 MB, free: 15.15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002443/0.1038, allocations: 123.5 kB / 498.4 MB, free: 15.03 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006778/0.1045, allocations: 498.4 kB / 498.8 MB, free: 14.54 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007722/0.1052, allocations: 0.5216 MB / 499.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001764/0.1054, allocations: 56 kB / 499.4 MB, free: 13.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001196/0.1056, allocations: 56 kB / 499.5 MB, free: 13.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002758/0.1058, allocations: 263.3 kB / 499.7 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002982/0.1061, allocations: 298 kB / 0.4883 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006032/0.1068, allocations: 0.6537 MB / 0.4889 GB, free: 12.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1068, allocations: 0 / 0.4889 GB, free: 12.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1068, allocations: 0 / 0.4889 GB, free: 12.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.632e-05/0.1068, allocations: 0 / 0.4889 GB, free: 12.7 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.004631/0.1114, allocations: 1.507 MB / 0.4904 GB, free: 11.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.1115, allocations: 8.031 kB / 0.4904 GB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001665/0.1117, allocations: 79.91 kB / 0.4905 GB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002423/0.1141, allocations: 0.9096 MB / 0.4914 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.227e-05/0.1141, allocations: 20.94 kB / 0.4914 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.316e-05/0.1142, allocations: 32.28 kB / 0.4914 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006056/0.1148, allocations: 380.6 kB / 0.4918 GB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.1149, allocations: 3.984 kB / 0.4918 GB, free: 9.672 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.369e-05/0.1149, allocations: 8 kB / 0.4918 GB, free: 9.664 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.1149, allocations: 8 kB / 0.4918 GB, free: 9.656 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007366/0.1156, allocations: 465.8 kB / 0.4923 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002266/0.1179, allocations: 1.252 MB / 0.4935 GB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001823/0.1198, allocations: 0.8053 MB / 0.4943 GB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000439/0.1202, allocations: 262 kB / 0.4945 GB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.662e-05/0.1203, allocations: 8.438 kB / 0.4945 GB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.1203, allocations: 39 kB / 0.4946 GB, free: 6.762 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.996e-06/0.1203, allocations: 0 / 0.4946 GB, free: 6.762 MB / 382.1 MB Notification: Performance of matching and sorting (n=48): time 0.003505/0.1238, allocations: 1.509 MB / 0.496 GB, free: 5.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.122e-05/0.1239, allocations: 55.84 kB / 0.4961 GB, free: 5.094 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002614/0.1265, allocations: 1.039 MB / 0.4971 GB, free: 4.043 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.717e-05/0.1266, allocations: 29.7 kB / 0.4971 GB, free: 4.008 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000231/0.1269, allocations: 301.9 kB / 0.4974 GB, free: 3.707 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002027/0.1271, allocations: 181.4 kB / 0.4976 GB, free: 3.527 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001492/0.1272, allocations: 78.14 kB / 0.4977 GB, free: 3.445 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.1273, allocations: 326 kB / 0.498 GB, free: 3.121 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003521/0.1277, allocations: 224.8 kB / 0.4982 GB, free: 2.902 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003329/0.1281, allocations: 220.4 kB / 0.4984 GB, free: 2.684 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004118/0.1322, allocations: 1.408 MB / 0.4998 GB, free: 1.277 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.1322, allocations: 0 / 0.4998 GB, free: 1.277 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001666/0.1339, allocations: 0.9032 MB / 0.5007 GB, free: 360 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.1339, allocations: 4 kB / 0.5007 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.1339, allocations: 0 / 0.5007 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006439/0.1346, allocations: 219.2 kB / 0.5009 GB, free: 124 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003236/0.1349, allocations: 75.91 kB / 0.501 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2072/0.3421, allocations: 6.411 MB / 0.5072 GB, free: 17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001146/0.3433, allocations: 181.7 kB / 0.5074 GB, free: 17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.091e-05/0.3434, allocations: 14.06 kB / 0.5074 GB, free: 17 MB / 382.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.000361/0.3437, allocations: 252.8 kB / 0.5076 GB, free: 16.88 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.3439, allocations: 72.52 kB / 0.5077 GB, free: 16.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001858/0.3441, allocations: 100.7 kB / 0.5078 GB, free: 16.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.3441, allocations: 7.031 kB / 0.5078 GB, free: 16.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.3441, allocations: 2.375 kB / 0.5078 GB, free: 16.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.3441, allocations: 1.641 kB / 0.5078 GB, free: 16.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007081/0.3448, allocations: 0.6309 MB / 0.5084 GB, free: 16.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.3448, allocations: 8.391 kB / 0.5084 GB, free: 16.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003712/0.3452, allocations: 56.22 kB / 0.5085 GB, free: 16.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005647/0.3458, allocations: 219.4 kB / 0.5087 GB, free: 16.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.508e-05/0.3458, allocations: 17.31 kB / 0.5087 GB, free: 16.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003894/0.3497, allocations: 6.421 MB / 0.515 GB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3498, allocations: 0 / 0.515 GB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001941/0.3517, allocations: 1.186 MB / 0.5161 GB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002129/0.3519, allocations: 175.1 kB / 0.5163 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.924e-05/0.352, allocations: 17.58 kB / 0.5163 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.3531, allocations: 161.1 kB / 0.5165 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.3533, allocations: 42.73 kB / 0.5165 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.037e-05/0.3533, allocations: 10.17 kB / 0.5165 GB, free: 10.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002162/0.3555, allocations: 0.8252 MB / 0.5173 GB, free: 10.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.052e-06/0.3555, allocations: 0 / 0.5173 GB, free: 10.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005936/0.3561, allocations: 148.3 kB / 0.5175 GB, free: 10.78 MB / 382.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.0001526/0.3563, allocations: 129.7 kB / 0.5176 GB, free: 10.69 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001459/0.3577, allocations: 1.06 MB / 0.5186 GB, free: 10.24 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3577, allocations: 0 / 0.5186 GB, free: 10.24 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008566/0.3586, allocations: 0.7664 MB / 0.5194 GB, free: 9.789 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006815/0.3593, allocations: 132.1 kB / 0.5195 GB, free: 9.777 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002359/0.3617, allocations: 1.55 MB / 0.521 GB, free: 9.184 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004615/0.3621, allocations: 0.9885 MB / 0.522 GB, free: 8.473 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001898/0.3623, allocations: 43.25 kB / 0.522 GB, free: 8.465 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3624, allocations: 0 / 0.522 GB, free: 8.465 MB / 382.1 MB Notification: Performance of Templates: time 0.02085/0.3832, allocations: 17.22 MB / 0.5389 GB, free: 1.285 MB / 382.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 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe 2>&1)