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.00587/0.00587, allocations: 105.3 kB / 15.73 MB, free: 6.043 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.001221/0.001221, allocations: 191.1 kB / 16.67 MB, free: 5.977 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2049/0.2049, allocations: 22.34 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001249, allocations: 59.66 kB / 437.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1117, allocations: 54.97 MB / 492 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen): time 0.002631/0.1144, allocations: 1.772 MB / 493.8 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002594/0.117, allocations: 1.732 MB / 495.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003775/0.1174, allocations: 7.938 kB / 495.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008117/0.1182, allocations: 206.8 kB / 495.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007718/0.1191, allocations: 266.8 kB / 496 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008568/0.1199, allocations: 407.3 kB / 496.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001329/0.1213, allocations: 1.194 MB / 497.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002578/0.1215, allocations: 124.7 kB / 497.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006544/0.1222, allocations: 490.5 kB / 498.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007629/0.123, allocations: 0.5216 MB / 498.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002028/0.1232, allocations: 60 kB / 498.8 MB, free: 10.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.1233, allocations: 56 kB / 498.8 MB, free: 10.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003155/0.1237, allocations: 263.2 kB / 499.1 MB, free: 10.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003786/0.1241, allocations: 298 kB / 499.4 MB, free: 9.832 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000654/0.1247, allocations: 0.646 MB / 0.4883 GB, free: 9.184 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1247, allocations: 0 / 0.4883 GB, free: 9.184 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1247, allocations: 0 / 0.4883 GB, free: 9.184 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.938e-05/0.1248, allocations: 0 / 0.4883 GB, free: 9.184 MB / 366.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.004732/0.1295, allocations: 1.518 MB / 0.4898 GB, free: 7.609 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.1296, allocations: 12.03 kB / 0.4898 GB, free: 7.598 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.1297, allocations: 72 kB / 0.4899 GB, free: 7.527 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002774/0.1325, allocations: 0.9096 MB / 0.4908 GB, free: 6.578 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.217e-05/0.1326, allocations: 20.88 kB / 0.4908 GB, free: 6.559 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.091e-05/0.1327, allocations: 32.38 kB / 0.4908 GB, free: 6.527 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006803/0.1333, allocations: 372.6 kB / 0.4912 GB, free: 6.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.1334, allocations: 3.984 kB / 0.4912 GB, free: 6.156 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.587e-05/0.1334, allocations: 16 kB / 0.4912 GB, free: 6.141 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.1334, allocations: 4 kB / 0.4912 GB, free: 6.137 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007862/0.1342, allocations: 469.9 kB / 0.4916 GB, free: 5.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002557/0.1368, allocations: 1.256 MB / 0.4929 GB, free: 4.371 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001953/0.1388, allocations: 0.8016 MB / 0.4936 GB, free: 3.555 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003995/0.1392, allocations: 262 kB / 0.4939 GB, free: 3.297 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.152e-05/0.1392, allocations: 4.438 kB / 0.4939 GB, free: 3.293 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.1393, allocations: 42.94 kB / 0.4939 GB, free: 3.238 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.084e-06/0.1393, allocations: 0 / 0.4939 GB, free: 3.238 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.003661/0.1429, allocations: 1.502 MB / 0.4954 GB, free: 1.645 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.204e-05/0.143, allocations: 59.84 kB / 0.4955 GB, free: 1.574 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002863/0.1459, allocations: 1.035 MB / 0.4965 GB, free: 0.5273 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.546e-05/0.146, allocations: 29.7 kB / 0.4965 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002258/0.1462, allocations: 305.8 kB / 0.4968 GB, free: 192 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002128/0.1464, allocations: 173.4 kB / 0.497 GB, free: 16 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001677/0.1466, allocations: 82.2 kB / 0.497 GB, free: 15.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1467, allocations: 338 kB / 0.4974 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000355/0.1471, allocations: 216.8 kB / 0.4976 GB, free: 15.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003463/0.1474, allocations: 224.4 kB / 0.4978 GB, free: 15.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004079/0.1515, allocations: 1.408 MB / 0.4992 GB, free: 13.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1515, allocations: 0 / 0.4992 GB, free: 13.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001645/0.1532, allocations: 0.8954 MB / 0.5 GB, free: 12.83 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.1532, allocations: 8 kB / 0.5 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.1532, allocations: 7.938 kB / 0.5001 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000632/0.1539, allocations: 215.2 kB / 0.5003 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003228/0.1542, allocations: 75.91 kB / 0.5003 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005723/0.1599, allocations: 6.416 MB / 0.5066 GB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001194/0.1611, allocations: 187.4 kB / 0.5068 GB, free: 5.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.465e-05/0.1612, allocations: 19.88 kB / 0.5068 GB, free: 5.336 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.0004646/0.1617, allocations: 255.4 kB / 0.507 GB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001959/0.1619, allocations: 67.16 kB / 0.5071 GB, free: 5.016 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002572/0.1621, allocations: 99.16 kB / 0.5072 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.1622, allocations: 8 kB / 0.5072 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.963e-05/0.1622, allocations: 0 / 0.5072 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.1622, allocations: 3.984 kB / 0.5072 GB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009054/0.1631, allocations: 0.6378 MB / 0.5078 GB, free: 4.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.1631, allocations: 0 / 0.5078 GB, free: 4.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000374/0.1635, allocations: 59.91 kB / 0.5079 GB, free: 4.152 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006083/0.1641, allocations: 215.2 kB / 0.5081 GB, free: 3.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.87e-05/0.1642, allocations: 23.98 kB / 0.5081 GB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005413/0.1696, allocations: 6.412 MB / 0.5144 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1696, allocations: 0 / 0.5144 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002016/0.1717, allocations: 1.19 MB / 0.5155 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002281/0.1719, allocations: 172.2 kB / 0.5157 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.172, allocations: 12 kB / 0.5157 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.1731, allocations: 163.8 kB / 0.5159 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.1733, allocations: 32.39 kB / 0.5159 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.137e-05/0.1733, allocations: 19.98 kB / 0.5159 GB, free: 11.31 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002417/0.1757, allocations: 0.8188 MB / 0.5167 GB, free: 10.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1758, allocations: 0 / 0.5167 GB, free: 10.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006204/0.1764, allocations: 151.8 kB / 0.5169 GB, free: 10.35 MB / 398.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.0001785/0.1766, allocations: 123.9 kB / 0.517 GB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001654/0.1782, allocations: 1.059 MB / 0.518 GB, free: 9.094 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.1783, allocations: 0 / 0.518 GB, free: 9.094 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.1793, allocations: 0.7782 MB / 0.5188 GB, free: 8.266 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007443/0.18, allocations: 134.5 kB / 0.5189 GB, free: 8.137 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002593/0.1826, allocations: 1.484 MB / 0.5204 GB, free: 6.621 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006214/0.1833, allocations: 0.9804 MB / 0.5213 GB, free: 5.613 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003688/0.1836, allocations: 152.7 kB / 0.5215 GB, free: 5.465 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.1838, allocations: 43.42 kB / 0.5215 GB, free: 5.426 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1838, allocations: 3.938 kB / 0.5215 GB, free: 5.422 MB / 398.1 MB Notification: Performance of Templates: time 0.01649/0.2003, allocations: 8.714 MB / 0.53 GB, free: 12.76 MB / 414.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)