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.001616/0.001616, allocations: 110 kB / 16.41 MB, free: 6.477 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.001366/0.001366, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.326/1.326, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09154/0.09154, allocations: 22.31 MB / 313.5 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 63.89 kB / 437.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1064, allocations: 54.95 MB / 492.7 MB, free: 4.762 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.002866/0.1093, allocations: 1.775 MB / 494.5 MB, free: 2.98 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002368/0.1117, allocations: 1.736 MB / 496.2 MB, free: 1.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001709/0.1119, allocations: 8 kB / 496.2 MB, free: 1.223 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005652/0.1125, allocations: 214.7 kB / 496.4 MB, free: 1.012 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004918/0.113, allocations: 246.9 kB / 496.7 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00073/0.1138, allocations: 407.3 kB / 497.1 MB, free: 380 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001127/0.1149, allocations: 1.194 MB / 498.2 MB, free: 15.17 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002318/0.1152, allocations: 120.7 kB / 498.4 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005261/0.1157, allocations: 498.5 kB / 498.8 MB, free: 14.56 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006291/0.1163, allocations: 0.5177 MB / 499.4 MB, free: 14.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.1164, allocations: 60 kB / 499.4 MB, free: 13.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.159e-05/0.1165, allocations: 56 kB / 499.5 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002667/0.1168, allocations: 263.2 kB / 499.7 MB, free: 13.67 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002411/0.1171, allocations: 294.1 kB / 0.4883 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005661/0.1176, allocations: 0.6537 MB / 0.4889 GB, free: 12.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1176, allocations: 0 / 0.4889 GB, free: 12.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1177, allocations: 0 / 0.4889 GB, free: 12.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.1177, allocations: 0 / 0.4889 GB, free: 12.73 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.0045/0.1222, allocations: 1.507 MB / 0.4904 GB, free: 11.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.1222, allocations: 12.03 kB / 0.4904 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001516/0.1224, allocations: 75.91 kB / 0.4905 GB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002562/0.125, allocations: 0.9096 MB / 0.4914 GB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.775e-05/0.125, allocations: 20.92 kB / 0.4914 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.729e-05/0.1251, allocations: 36.28 kB / 0.4914 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006501/0.1257, allocations: 376.6 kB / 0.4918 GB, free: 9.703 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.1258, allocations: 0 / 0.4918 GB, free: 9.703 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.972e-05/0.1258, allocations: 12 kB / 0.4918 GB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.1258, allocations: 4 kB / 0.4918 GB, free: 9.688 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007646/0.1266, allocations: 473.9 kB / 0.4923 GB, free: 9.227 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002306/0.1289, allocations: 1.252 MB / 0.4935 GB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001838/0.1308, allocations: 0.8015 MB / 0.4943 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000388/0.1312, allocations: 269.9 kB / 0.4945 GB, free: 6.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.348e-05/0.1312, allocations: 4.438 kB / 0.4945 GB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.1313, allocations: 39 kB / 0.4946 GB, free: 6.785 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.244e-06/0.1313, allocations: 0 / 0.4946 GB, free: 6.785 MB / 382.1 MB Notification: Performance of matching and sorting (n=48): time 0.003408/0.1347, allocations: 1.502 MB / 0.496 GB, free: 5.191 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.1348, allocations: 59.84 kB / 0.4961 GB, free: 5.121 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002721/0.1375, allocations: 1.039 MB / 0.4971 GB, free: 4.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.531e-05/0.1376, allocations: 33.7 kB / 0.4971 GB, free: 4.031 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002412/0.1378, allocations: 297.9 kB / 0.4974 GB, free: 3.734 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002292/0.1381, allocations: 177.4 kB / 0.4976 GB, free: 3.559 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.1382, allocations: 82.12 kB / 0.4977 GB, free: 3.473 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1384, allocations: 337.9 kB / 0.498 GB, free: 3.137 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003798/0.1388, allocations: 216.9 kB / 0.4982 GB, free: 2.926 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003845/0.1392, allocations: 224.4 kB / 0.4984 GB, free: 2.703 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004291/0.1435, allocations: 1.405 MB / 0.4998 GB, free: 1.301 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.1435, allocations: 8 kB / 0.4998 GB, free: 1.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001793/0.1453, allocations: 0.8915 MB / 0.5007 GB, free: 388 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.1453, allocations: 8 kB / 0.5007 GB, free: 380 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.1453, allocations: 4 kB / 0.5007 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007047/0.1461, allocations: 219.2 kB / 0.5009 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000345/0.1464, allocations: 79.84 kB / 0.501 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2339/0.3803, allocations: 6.405 MB / 0.5072 GB, free: 17.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/0.3817, allocations: 176.2 kB / 0.5074 GB, free: 17.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.867e-05/0.3818, allocations: 15.89 kB / 0.5074 GB, free: 17.19 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.0004851/0.3823, allocations: 250.5 kB / 0.5076 GB, free: 17.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002546/0.3826, allocations: 81.86 kB / 0.5077 GB, free: 17.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002544/0.3828, allocations: 96.05 kB / 0.5078 GB, free: 17.05 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.3828, allocations: 5.219 kB / 0.5078 GB, free: 17.05 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.877e-05/0.3829, allocations: 6.406 kB / 0.5078 GB, free: 17.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.3829, allocations: 3.094 kB / 0.5078 GB, free: 17.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009679/0.3838, allocations: 0.6287 MB / 0.5084 GB, free: 16.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.3839, allocations: 5.203 kB / 0.5084 GB, free: 16.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003845/0.3843, allocations: 60.47 kB / 0.5085 GB, free: 16.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006382/0.3849, allocations: 216.8 kB / 0.5087 GB, free: 16.83 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-05/0.385, allocations: 16.39 kB / 0.5087 GB, free: 16.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004365/0.3893, allocations: 6.421 MB / 0.515 GB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.3894, allocations: 1.031 kB / 0.515 GB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00219/0.3916, allocations: 1.184 MB / 0.5162 GB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002602/0.3919, allocations: 170.9 kB / 0.5163 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001328/0.392, allocations: 19.92 kB / 0.5163 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/0.3932, allocations: 159.6 kB / 0.5165 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/0.3933, allocations: 38.64 kB / 0.5165 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.785e-05/0.3934, allocations: 13.55 kB / 0.5165 GB, free: 11.08 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002567/0.396, allocations: 0.8327 MB / 0.5173 GB, free: 10.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.082e-06/0.396, allocations: 0 / 0.5173 GB, free: 10.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008392/0.3968, allocations: 147.8 kB / 0.5175 GB, free: 10.97 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.0001829/0.397, allocations: 126 kB / 0.5176 GB, free: 10.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001728/0.3987, allocations: 1.059 MB / 0.5186 GB, free: 10.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3988, allocations: 0 / 0.5186 GB, free: 10.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009509/0.3997, allocations: 0.77 MB / 0.5194 GB, free: 9.984 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007771/0.4005, allocations: 127.1 kB / 0.5195 GB, free: 9.969 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002707/0.4032, allocations: 1.556 MB / 0.521 GB, free: 9.371 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005937/0.4038, allocations: 0.985 MB / 0.522 GB, free: 8.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002292/0.4041, allocations: 42.75 kB / 0.522 GB, free: 8.652 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4041, allocations: 0 / 0.522 GB, free: 8.652 MB / 382.1 MB Notification: Performance of Templates: time 0.02442/0.4285, allocations: 17.13 MB / 0.5388 GB, free: 1.504 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)