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.005174/0.005174, allocations: 109.2 kB / 15.71 MB, free: 5.977 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.001182/0.001182, allocations: 190 kB / 16.64 MB, free: 5.914 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.332/1.332, allocations: 222.9 MB / 240.3 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.09223/0.09223, allocations: 22.33 MB / 312.8 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 63.91 kB / 437 MB, free: 11.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1102, allocations: 54.95 MB / 492 MB, free: 4.801 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.00299/0.1132, allocations: 1.783 MB / 493.7 MB, free: 3.012 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003443/0.1167, allocations: 1.728 MB / 495.5 MB, free: 1.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002346/0.1169, allocations: 8 kB / 495.5 MB, free: 1.262 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005458/0.1175, allocations: 210.8 kB / 495.7 MB, free: 1.055 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004709/0.118, allocations: 246.9 kB / 495.9 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006459/0.1186, allocations: 411.3 kB / 496.3 MB, free: 420 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001007/0.1197, allocations: 1.194 MB / 497.5 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002156/0.1199, allocations: 116.8 kB / 497.6 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004526/0.1203, allocations: 494.4 kB / 498.1 MB, free: 14.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005533/0.1209, allocations: 0.5255 MB / 498.6 MB, free: 14.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.991e-05/0.121, allocations: 56 kB / 498.7 MB, free: 14.03 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.857e-05/0.1211, allocations: 60 kB / 498.8 MB, free: 13.97 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002716/0.1214, allocations: 259.2 kB / 499 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002393/0.1216, allocations: 294.1 kB / 499.3 MB, free: 13.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005006/0.1221, allocations: 0.6576 MB / 499.9 MB, free: 12.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1221, allocations: 4 kB / 500 MB, free: 12.76 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1221, allocations: 0 / 500 MB, free: 12.76 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.1222, allocations: 0 / 500 MB, free: 12.76 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.004364/0.1265, allocations: 1.503 MB / 0.4897 GB, free: 11.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.1266, allocations: 8.031 kB / 0.4897 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001278/0.1267, allocations: 79.91 kB / 0.4898 GB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002411/0.1291, allocations: 0.9095 MB / 0.4907 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.1291, allocations: 24.94 kB / 0.4907 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.205e-05/0.1292, allocations: 36.27 kB / 0.4907 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005667/0.1298, allocations: 376.6 kB / 0.4911 GB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.1298, allocations: 3.984 kB / 0.4911 GB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.79e-05/0.1299, allocations: 12 kB / 0.4911 GB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.1299, allocations: 12 kB / 0.4911 GB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000722/0.1306, allocations: 461.9 kB / 0.4916 GB, free: 9.262 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002017/0.1326, allocations: 1.26 MB / 0.4928 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001806/0.1345, allocations: 0.8015 MB / 0.4936 GB, free: 7.133 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003655/0.1348, allocations: 258 kB / 0.4938 GB, free: 6.879 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.969e-05/0.1349, allocations: 8.438 kB / 0.4938 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.516e-05/0.1349, allocations: 42.98 kB / 0.4939 GB, free: 6.816 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 1.543e-06/0.1349, allocations: 0 / 0.4939 GB, free: 6.816 MB / 382.1 MB Notification: Performance of matching and sorting (n=48): time 0.003188/0.1381, allocations: 1.502 MB / 0.4953 GB, free: 5.223 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.571e-05/0.1382, allocations: 55.84 kB / 0.4954 GB, free: 5.156 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002561/0.1407, allocations: 1.043 MB / 0.4964 GB, free: 4.102 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.96e-05/0.1408, allocations: 33.7 kB / 0.4964 GB, free: 4.062 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.141, allocations: 293.9 kB / 0.4967 GB, free: 3.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.1411, allocations: 181.4 kB / 0.4969 GB, free: 3.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/0.1413, allocations: 82.12 kB / 0.497 GB, free: 3.504 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.1414, allocations: 330 kB / 0.4973 GB, free: 3.176 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003432/0.1417, allocations: 212.9 kB / 0.4975 GB, free: 2.969 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003351/0.1421, allocations: 232.3 kB / 0.4977 GB, free: 2.738 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003991/0.1461, allocations: 1.408 MB / 0.4991 GB, free: 1.332 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1461, allocations: 0 / 0.4991 GB, free: 1.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001519/0.1476, allocations: 0.8993 MB / 0.5 GB, free: 420 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.1477, allocations: 6.031 kB / 0.5 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1477, allocations: 0 / 0.5 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005994/0.1483, allocations: 219.2 kB / 0.5002 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003163/0.1486, allocations: 79.84 kB / 0.5003 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2365/0.3851, allocations: 6.404 MB / 0.5065 GB, free: 17.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001396/0.3866, allocations: 181.1 kB / 0.5067 GB, free: 17.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.734e-05/0.3866, allocations: 17.02 kB / 0.5067 GB, free: 17.1 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.0004667/0.3871, allocations: 250.4 kB / 0.5069 GB, free: 16.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001271/0.3873, allocations: 72.03 kB / 0.507 GB, free: 16.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002112/0.3875, allocations: 100.8 kB / 0.5071 GB, free: 16.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.3875, allocations: 7.406 kB / 0.5071 GB, free: 16.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.177e-05/0.3875, allocations: 2.094 kB / 0.5071 GB, free: 16.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.3875, allocations: 2.203 kB / 0.5071 GB, free: 16.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007585/0.3883, allocations: 0.6305 MB / 0.5077 GB, free: 16.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.3883, allocations: 4.922 kB / 0.5077 GB, free: 16.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003549/0.3887, allocations: 56.92 kB / 0.5078 GB, free: 16.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005859/0.3893, allocations: 221.9 kB / 0.508 GB, free: 16.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.111e-05/0.3893, allocations: 18.56 kB / 0.508 GB, free: 16.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003804/0.3931, allocations: 6.426 MB / 0.5143 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3931, allocations: 0 / 0.5143 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.3951, allocations: 1.183 MB / 0.5154 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001703/0.3953, allocations: 173.5 kB / 0.5156 GB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.214e-05/0.3953, allocations: 20.33 kB / 0.5156 GB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.3964, allocations: 157.4 kB / 0.5158 GB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/0.3966, allocations: 44.14 kB / 0.5158 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-05/0.3966, allocations: 9.641 kB / 0.5158 GB, free: 10.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002335/0.3989, allocations: 0.8257 MB / 0.5166 GB, free: 10.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.399, allocations: 0 / 0.5166 GB, free: 10.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005432/0.3995, allocations: 145.9 kB / 0.5168 GB, free: 10.88 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.0001415/0.3997, allocations: 124.7 kB / 0.5169 GB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00142/0.4011, allocations: 1.059 MB / 0.5179 GB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.4011, allocations: 0 / 0.5179 GB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008433/0.4019, allocations: 0.772 MB / 0.5187 GB, free: 9.887 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006684/0.4026, allocations: 134.9 kB / 0.5188 GB, free: 9.871 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002699/0.4053, allocations: 1.49 MB / 0.5203 GB, free: 9.309 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005693/0.4059, allocations: 0.9795 MB / 0.5212 GB, free: 8.598 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003931/0.4063, allocations: 149.9 kB / 0.5214 GB, free: 8.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001547/0.4065, allocations: 46.44 kB / 0.5214 GB, free: 8.582 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4065, allocations: 0.9844 kB / 0.5214 GB, free: 8.582 MB / 382.1 MB Notification: Performance of Templates: time 0.0188/0.4253, allocations: 8.587 MB / 0.5298 GB, free: 6.273 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)