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.0008831/0.0008831, allocations: 92.47 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009516/0.0009516, allocations: 184.2 kB / 16.92 MB, free: 6.926 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.264/1.264, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1875/0.1875, allocations: 22.36 MB / 314.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004204/0.0004204, allocations: 8 kB / 383.3 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2172/0.2176, allocations: 55.98 MB / 439.3 MB, free: 39.29 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.001241/0.2189, allocations: 1.426 MB / 440.7 MB, free: 38.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.2204, allocations: 1.735 MB / 442.4 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.2206, allocations: 6.719 kB / 442.4 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003845/0.221, allocations: 171.5 kB / 442.6 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003839/0.2213, allocations: 231.4 kB / 442.8 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004552/0.2218, allocations: 391.7 kB / 443.2 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007066/0.2225, allocations: 1.143 MB / 444.3 MB, free: 36.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001614/0.2227, allocations: 107.1 kB / 444.4 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003131/0.223, allocations: 433.6 kB / 444.9 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004208/0.2234, allocations: 0.4909 MB / 445.4 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.037e-05/0.2235, allocations: 25.66 kB / 445.4 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.202e-05/0.2236, allocations: 27.94 kB / 445.4 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.2238, allocations: 226.7 kB / 445.6 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001648/0.224, allocations: 294.6 kB / 445.9 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002688/0.2242, allocations: 472.8 kB / 446.4 MB, free: 35.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2242, allocations: 2.844 kB / 446.4 MB, free: 35.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2242, allocations: 0 / 446.4 MB, free: 35.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.2243, allocations: 4 kB / 446.4 MB, free: 35.54 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.003868/0.2281, allocations: 1.439 MB / 447.8 MB, free: 34.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.813e-05/0.2282, allocations: 13.69 kB / 447.8 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.882e-05/0.2283, allocations: 73.97 kB / 447.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002148/0.2304, allocations: 0.9153 MB / 448.8 MB, free: 34.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.985e-05/0.2305, allocations: 19.06 kB / 448.8 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.074e-05/0.2305, allocations: 33.88 kB / 448.9 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005018/0.231, allocations: 373.1 kB / 449.2 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.2311, allocations: 0 / 449.2 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.2311, allocations: 11.94 kB / 449.3 MB, free: 34.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.2311, allocations: 10.12 kB / 449.3 MB, free: 34.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006307/0.2317, allocations: 474.5 kB / 449.7 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001775/0.2335, allocations: 1.272 MB / 451 MB, free: 33.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001564/0.2351, allocations: 0.7927 MB / 451.8 MB, free: 33.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003075/0.2354, allocations: 267.8 kB / 452.1 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.073e-05/0.2355, allocations: 10.28 kB / 452.1 MB, free: 33.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.27e-05/0.2355, allocations: 37.62 kB / 452.1 MB, free: 33.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.593e-06/0.2355, allocations: 0 / 452.1 MB, free: 33.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002802/0.2383, allocations: 1.514 MB / 453.6 MB, free: 32.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.225e-05/0.2383, allocations: 57.47 kB / 453.7 MB, free: 32.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002257/0.2406, allocations: 1.049 MB / 454.7 MB, free: 32.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.113e-05/0.2406, allocations: 35.89 kB / 454.8 MB, free: 31.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.2408, allocations: 296.6 kB / 455 MB, free: 31.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.2409, allocations: 176.8 kB / 455.2 MB, free: 31.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.924e-05/0.2409, allocations: 50.75 kB / 455.3 MB, free: 31.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.98e-05/0.241, allocations: 331.1 kB / 455.6 MB, free: 31.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003014/0.2413, allocations: 218 kB / 455.8 MB, free: 31.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003053/0.2416, allocations: 222 kB / 456 MB, free: 31.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003924/0.2455, allocations: 1.437 MB / 457.5 MB, free: 30.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2456, allocations: 5.312 kB / 457.5 MB, free: 30.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001447/0.247, allocations: 0.8961 MB / 458.4 MB, free: 30.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.247, allocations: 4.812 kB / 458.4 MB, free: 30.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.247, allocations: 4 kB / 458.4 MB, free: 30.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005863/0.2476, allocations: 217.2 kB / 458.6 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003226/0.248, allocations: 74.59 kB / 458.6 MB, free: 30.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003491/0.2515, allocations: 6.016 MB / 464.7 MB, free: 24.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00107/0.2526, allocations: 187.1 kB / 464.8 MB, free: 24.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.219e-05/0.2526, allocations: 15.66 kB / 464.9 MB, free: 24.72 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] 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.0002724/0.2529, allocations: 266.3 kB / 465.1 MB, free: 24.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.253, allocations: 68.3 kB / 465.2 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002061/0.2532, allocations: 100.1 kB / 465.3 MB, free: 24.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.2532, allocations: 8.406 kB / 465.3 MB, free: 24.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.288e-06/0.2532, allocations: 3.25 kB / 465.3 MB, free: 24.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.2532, allocations: 6.375 kB / 465.3 MB, free: 24.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006518/0.2539, allocations: 0.6384 MB / 465.9 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.2539, allocations: 0.6094 kB / 465.9 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003652/0.2543, allocations: 54.31 kB / 466 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005435/0.2548, allocations: 220.4 kB / 466.2 MB, free: 23.99 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.161e-05/0.2549, allocations: 17.8 kB / 466.2 MB, free: 23.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003408/0.2583, allocations: 5.998 MB / 472.2 MB, free: 18.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2583, allocations: 3.938 kB / 472.2 MB, free: 18.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001742/0.2601, allocations: 1.187 MB / 473.4 MB, free: 17.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/0.2602, allocations: 171.4 kB / 473.6 MB, free: 17.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.082e-05/0.2603, allocations: 16.55 kB / 473.6 MB, free: 17.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/0.2614, allocations: 159.6 kB / 473.8 MB, free: 17.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.331e-05/0.2615, allocations: 43.52 kB / 473.8 MB, free: 17.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.06e-05/0.2615, allocations: 17.52 kB / 473.8 MB, free: 17.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002237/0.2638, allocations: 0.8367 MB / 474.7 MB, free: 17.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2638, allocations: 0 / 474.7 MB, free: 17.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004776/0.2643, allocations: 151 kB / 474.8 MB, free: 17.48 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 (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.000111/0.2644, allocations: 124.6 kB / 474.9 MB, free: 17.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001268/0.2657, allocations: 1.063 MB / 476 MB, free: 16.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2657, allocations: 0 / 476 MB, free: 16.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000803/0.2665, allocations: 0.7688 MB / 476.8 MB, free: 16.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006758/0.2672, allocations: 125.6 kB / 476.9 MB, free: 16.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/0.2693, allocations: 1.789 MB / 478.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000394/0.2697, allocations: 0.9817 MB / 479.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001722/0.2699, allocations: 44.69 kB / 479.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2699, allocations: 0 / 479.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of Templates: time 0.01472/0.2846, allocations: 16.99 MB / 496.7 MB, free: 2.086 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)