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.001036/0.001036, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001173/0.001172, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 223.3 MB / 240 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2222/0.2222, allocations: 22.34 MB / 313.4 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003332/0.0003334, allocations: 12 kB / 381.9 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3106/0.3109, allocations: 55.98 MB / 437.9 MB, free: 39.3 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.001861/0.3128, allocations: 1.34 MB / 439.3 MB, free: 38.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002577/0.3154, allocations: 1.712 MB / 441 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001809/0.3156, allocations: 5 kB / 441 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006194/0.3163, allocations: 175 kB / 441.1 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000461/0.3167, allocations: 218.2 kB / 441.4 MB, free: 37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000651/0.3174, allocations: 344.3 kB / 441.7 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008074/0.3182, allocations: 0.9875 MB / 442.7 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001784/0.3184, allocations: 98 kB / 442.8 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004052/0.3188, allocations: 0.5055 MB / 443.3 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004584/0.3193, allocations: 0.4912 MB / 443.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.082e-05/0.3194, allocations: 27.44 kB / 443.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.066e-05/0.3194, allocations: 26.47 kB / 443.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001947/0.3196, allocations: 227.4 kB / 444.1 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.783e-05/0.3197, allocations: 104.5 kB / 444.2 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004515/0.3202, allocations: 483.2 kB / 444.6 MB, free: 35.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.757e-06/0.3202, allocations: 0 / 444.6 MB, free: 35.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3202, allocations: 0 / 444.6 MB, free: 35.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.218e-05/0.3202, allocations: 0 / 444.6 MB, free: 35.87 MB / 350.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.004022/0.3243, allocations: 1.44 MB / 446.1 MB, free: 35.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.3243, allocations: 10.69 kB / 446.1 MB, free: 35.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.3245, allocations: 77.22 kB / 446.2 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002065/0.3266, allocations: 0.8706 MB / 447 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.664e-05/0.3266, allocations: 23.41 kB / 447 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.53e-05/0.3267, allocations: 36.67 kB / 447.1 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006086/0.3273, allocations: 380 kB / 447.5 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.834e-05/0.3273, allocations: 0 / 447.5 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.732e-05/0.3274, allocations: 14.64 kB / 447.5 MB, free: 34.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.3274, allocations: 9.875 kB / 447.5 MB, free: 34.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007104/0.3281, allocations: 463.9 kB / 447.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001864/0.33, allocations: 1.274 MB / 449.2 MB, free: 33.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001538/0.3315, allocations: 0.7967 MB / 450 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003213/0.3318, allocations: 258.6 kB / 450.3 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.591e-05/0.3319, allocations: 5.812 kB / 450.3 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.537e-05/0.3319, allocations: 35 kB / 450.3 MB, free: 33.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.784e-06/0.3319, allocations: 0 / 450.3 MB, free: 33.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002683/0.3346, allocations: 1.513 MB / 451.8 MB, free: 32.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.3347, allocations: 54.53 kB / 451.9 MB, free: 32.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002109/0.3368, allocations: 1.056 MB / 452.9 MB, free: 32.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.3368, allocations: 29.7 kB / 452.9 MB, free: 32.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002005/0.337, allocations: 295.2 kB / 453.2 MB, free: 32.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.3372, allocations: 183.4 kB / 453.4 MB, free: 31.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.404e-05/0.3372, allocations: 11.12 kB / 453.4 MB, free: 31.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.401e-05/0.3373, allocations: 326.7 kB / 453.7 MB, free: 31.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003175/0.3376, allocations: 218.8 kB / 454 MB, free: 31.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003681/0.338, allocations: 222.9 kB / 454.2 MB, free: 31.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004415/0.3384, allocations: 267.1 kB / 454.4 MB, free: 31.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3384, allocations: 0 / 454.4 MB, free: 31.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001518/0.34, allocations: 0.8881 MB / 455.3 MB, free: 31.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.34, allocations: 5.344 kB / 455.3 MB, free: 31.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.34, allocations: 0 / 455.3 MB, free: 31.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006375/0.3407, allocations: 220.2 kB / 455.5 MB, free: 31.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002924/0.341, allocations: 76.61 kB / 455.6 MB, free: 31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003918/0.3449, allocations: 6.008 MB / 461.6 MB, free: 25.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009892/0.3459, allocations: 185.1 kB / 461.8 MB, free: 25.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.612e-05/0.3459, allocations: 18.72 kB / 461.8 MB, free: 25.39 MB / 350.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] P1.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] 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003494/0.3463, allocations: 255.1 kB / 462.1 MB, free: 25.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.3464, allocations: 76.59 kB / 462.1 MB, free: 25.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002013/0.3466, allocations: 107.2 kB / 462.3 MB, free: 25.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.3466, allocations: 5.234 kB / 462.3 MB, free: 25.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.707e-05/0.3467, allocations: 2.656 kB / 462.3 MB, free: 25.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.3467, allocations: 2.672 kB / 462.3 MB, free: 25.1 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000792/0.3475, allocations: 0.6343 MB / 462.9 MB, free: 24.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3475, allocations: 1.375 kB / 462.9 MB, free: 24.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003402/0.3478, allocations: 59.92 kB / 463 MB, free: 24.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00051/0.3483, allocations: 213.6 kB / 463.2 MB, free: 24.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.192e-05/0.3484, allocations: 20.06 kB / 463.2 MB, free: 24.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003658/0.3521, allocations: 5.999 MB / 469.2 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3521, allocations: 4.062 kB / 469.2 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001773/0.3539, allocations: 1.187 MB / 470.4 MB, free: 18.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/0.354, allocations: 171.5 kB / 470.5 MB, free: 18.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.304e-05/0.3541, allocations: 15.53 kB / 470.6 MB, free: 18.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009357/0.355, allocations: 165 kB / 470.7 MB, free: 18.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.897e-05/0.3552, allocations: 39.67 kB / 470.8 MB, free: 18.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.931e-05/0.3552, allocations: 16.55 kB / 470.8 MB, free: 18.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001984/0.3572, allocations: 0.8321 MB / 471.6 MB, free: 18.17 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3572, allocations: 0 / 471.6 MB, free: 18.17 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005905/0.3578, allocations: 150.1 kB / 471.8 MB, free: 18.14 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001364/0.3579, allocations: 125.4 kB / 471.9 MB, free: 18.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.3593, allocations: 1.061 MB / 472.9 MB, free: 17.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3594, allocations: 5.156 kB / 472.9 MB, free: 17.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008677/0.3602, allocations: 0.7659 MB / 473.7 MB, free: 16.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006512/0.3609, allocations: 115.7 kB / 473.8 MB, free: 16.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002357/0.3633, allocations: 1.66 MB / 475.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004487/0.3637, allocations: 0.9887 MB / 476.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003703/0.3641, allocations: 152.2 kB / 476.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.3643, allocations: 41.94 kB / 476.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of SimCode: time 4.9e-07/0.3643, allocations: 0 / 476.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of Templates: time 0.01533/0.3796, allocations: 7.783 MB / 484.4 MB, free: 12.62 MB / 350.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)