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_02_PI.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_02_PI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI") translateModel(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 116.3 kB / 16.42 MB, free: 6.02 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.001132/0.001132, allocations: 184.3 kB / 17.35 MB, free: 5.633 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.313/1.313, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09293/0.09293, allocations: 22.33 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 63.91 kB / 437.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08624/0.08747, allocations: 54.95 MB / 492.7 MB, free: 4.781 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI): time 0.002908/0.09041, allocations: 2.19 MB / 494.9 MB, free: 2.578 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.09169, allocations: 0.8183 MB / 495.7 MB, free: 1.754 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.09182, allocations: 4 kB / 495.7 MB, free: 1.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003163/0.09214, allocations: 79.42 kB / 495.8 MB, free: 1.672 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002514/0.09241, allocations: 107.3 kB / 495.9 MB, free: 1.566 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004806/0.0929, allocations: 259.6 kB / 496.1 MB, free: 1.312 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005155/0.09343, allocations: 0.5574 MB / 496.7 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000189/0.09363, allocations: 112.2 kB / 496.8 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000224/0.09386, allocations: 211.3 kB / 497 MB, free: 444 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002647/0.09413, allocations: 223.1 kB / 497.2 MB, free: 220 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.37e-05/0.0942, allocations: 36 kB / 497.3 MB, free: 184 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.908e-05/0.09427, allocations: 39.94 kB / 497.3 MB, free: 144 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.09439, allocations: 103.7 kB / 497.4 MB, free: 40 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.09456, allocations: 159 kB / 497.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003293/0.09489, allocations: 394.6 kB / 497.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.0949, allocations: 0 / 497.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.09491, allocations: 3.938 kB / 497.9 MB, free: 15.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.09493, allocations: 4 kB / 497.9 MB, free: 15.49 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001861/0.09679, allocations: 0.8141 MB / 498.8 MB, free: 14.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.09684, allocations: 8.031 kB / 498.8 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.934e-05/0.09692, allocations: 40.47 kB / 498.8 MB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.09793, allocations: 459.7 kB / 499.3 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.944e-05/0.09796, allocations: 12.81 kB / 499.3 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.739e-05/0.09802, allocations: 28.28 kB / 499.3 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005428/0.09857, allocations: 294.6 kB / 499.6 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.09859, allocations: 0 / 499.6 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.758e-05/0.09862, allocations: 12 kB / 499.6 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.09863, allocations: 4 kB / 499.6 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005624/0.0992, allocations: 257.5 kB / 499.8 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001378/0.1006, allocations: 0.8065 MB / 0.4889 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009478/0.1016, allocations: 388.4 kB / 0.4893 GB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002725/0.1018, allocations: 136.8 kB / 0.4894 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.1019, allocations: 4 kB / 0.4894 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/0.1019, allocations: 34.56 kB / 0.4895 GB, free: 12.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.483e-06/0.1019, allocations: 0 / 0.4895 GB, free: 12.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.002829/0.1047, allocations: 0.9565 MB / 0.4904 GB, free: 11.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.1048, allocations: 110.8 kB / 0.4905 GB, free: 10.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000892/0.1057, allocations: 444.3 kB / 0.4909 GB, free: 10.47 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.925e-05/0.1057, allocations: 29.7 kB / 0.4909 GB, free: 10.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000178/0.1059, allocations: 188.3 kB / 0.4911 GB, free: 10.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.701e-05/0.106, allocations: 86.73 kB / 0.4912 GB, free: 10.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.872e-05/0.1061, allocations: 45.7 kB / 0.4913 GB, free: 10.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.1063, allocations: 346.8 kB / 0.4916 GB, free: 9.762 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002839/0.1065, allocations: 124.8 kB / 0.4917 GB, free: 9.637 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002837/0.1068, allocations: 147.7 kB / 0.4918 GB, free: 9.484 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001801/0.1087, allocations: 0.583 MB / 0.4924 GB, free: 8.898 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1087, allocations: 0 / 0.4924 GB, free: 8.898 MB / 382.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001404/0.1101, allocations: 0.5531 MB / 0.493 GB, free: 8.332 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.1101, allocations: 4 kB / 0.493 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.1101, allocations: 0 / 0.493 GB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004866/0.1106, allocations: 141.6 kB / 0.4931 GB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.1108, allocations: 35.86 kB / 0.4931 GB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004282/0.115, allocations: 3.67 MB / 0.4967 GB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004784/0.1155, allocations: 71.86 kB / 0.4968 GB, free: 4.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.274e-05/0.1156, allocations: 11.98 kB / 0.4968 GB, free: 4.117 MB / 382.1 MB Warning: Assuming fixed start value for the following 4 variables: sens_tforS.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P_tforS.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] sens_tforP.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P_tforP.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003151/0.1159, allocations: 216.6 kB / 0.497 GB, free: 3.906 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002041/0.1161, allocations: 134.8 kB / 0.4971 GB, free: 3.766 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001474/0.1176, allocations: 0.5089 MB / 0.4976 GB, free: 3.254 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.192e-06/0.1176, allocations: 4 kB / 0.4976 GB, free: 3.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=29) (initialization_lambda0): time 0.0007185/0.1183, allocations: 402.9 kB / 0.498 GB, free: 2.844 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.043e-05/0.1184, allocations: 8 kB / 0.498 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-06/0.1184, allocations: 0 / 0.498 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002981/0.1187, allocations: 113.6 kB / 0.4981 GB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.1188, allocations: 31.92 kB / 0.4982 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1883/0.3071, allocations: 3.625 MB / 0.5017 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005034/0.3076, allocations: 68 kB / 0.5018 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.553e-05/0.3076, allocations: 6.156 kB / 0.5018 GB, free: 20.62 MB / 382.1 MB Warning: Assuming fixed start value for the following 4 variables: sens_tforS.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P_tforS.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] sens_tforP.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P_tforP.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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001295/0.3078, allocations: 199.4 kB / 0.502 GB, free: 20.44 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.781e-05/0.3078, allocations: 38.41 kB / 0.502 GB, free: 20.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001013/0.3079, allocations: 47.83 kB / 0.502 GB, free: 20.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.308, allocations: 2.016 kB / 0.502 GB, free: 20.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.308, allocations: 5.281 kB / 0.502 GB, free: 20.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.172e-05/0.308, allocations: 116.9 kB / 0.5022 GB, free: 20.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.77e-05/0.3081, allocations: 10.78 kB / 0.5022 GB, free: 20.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004532/0.3086, allocations: 52.61 kB / 0.5022 GB, free: 20.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.429e-05/0.3086, allocations: 25.34 kB / 0.5022 GB, free: 20.34 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001752/0.3104, allocations: 0.6457 MB / 0.5029 GB, free: 20.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008808/0.3113, allocations: 0.6592 MB / 0.5035 GB, free: 20.02 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002493/0.3116, allocations: 133.5 kB / 0.5036 GB, free: 20.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007063/0.3123, allocations: 339.7 kB / 0.504 GB, free: 19.93 MB / 382.1 MB Notification: Performance of Backend: time 4.41e-07/0.3123, allocations: 3.562 kB / 0.504 GB, free: 19.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001327/0.3136, allocations: 0.9021 MB / 0.5049 GB, free: 19.43 MB / 382.1 MB Notification: Performance of SimCode: time 0.001039/0.3147, allocations: 1.226 MB / 0.5061 GB, free: 18.6 MB / 382.1 MB Notification: Performance of Templates: time 0.01194/0.3266, allocations: 6.86 MB / 0.5127 GB, free: 18.34 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.sim & ./AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.pipe 2>&1)