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.001544/0.001549, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001804/0.001804, allocations: 193.1 kB / 16.25 MB, free: 6.641 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.346/1.346, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2037/0.2037, allocations: 22.35 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 67.88 kB / 380.3 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.251, allocations: 54.94 MB / 435.2 MB, free: 39.55 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.002551/0.2536, allocations: 1.795 MB / 437 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001836/0.2555, allocations: 1.737 MB / 438.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001584/0.2557, allocations: 10.75 kB / 438.8 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004558/0.2561, allocations: 181.2 kB / 439 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003957/0.2565, allocations: 228.9 kB / 439.2 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005463/0.2571, allocations: 384.7 kB / 439.6 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008626/0.258, allocations: 1.193 MB / 440.8 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002302/0.2582, allocations: 116.4 kB / 440.9 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000516/0.2587, allocations: 0.4929 MB / 441.4 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006324/0.2594, allocations: 0.5348 MB / 441.9 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000144/0.2595, allocations: 56.5 kB / 442 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.93e-05/0.2596, allocations: 58.09 kB / 442 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002311/0.2599, allocations: 258.8 kB / 442.3 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002266/0.2601, allocations: 304 kB / 442.6 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005564/0.2607, allocations: 0.634 MB / 443.2 MB, free: 35.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.2607, allocations: 0 / 443.2 MB, free: 35.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.2607, allocations: 0 / 443.2 MB, free: 35.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.2607, allocations: 0 / 443.2 MB, free: 35.29 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.004367/0.2651, allocations: 1.52 MB / 444.7 MB, free: 34.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/0.2652, allocations: 8.719 kB / 444.7 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001534/0.2653, allocations: 78.84 kB / 444.8 MB, free: 34.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002323/0.2676, allocations: 0.89 MB / 445.7 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.26e-05/0.2677, allocations: 22.53 kB / 445.7 MB, free: 34.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.738e-05/0.2678, allocations: 36.62 kB / 445.8 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007037/0.2685, allocations: 372.7 kB / 446.1 MB, free: 33.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/0.2685, allocations: 0 / 446.1 MB, free: 33.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.008e-05/0.2686, allocations: 14.09 kB / 446.1 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.2686, allocations: 6.656 kB / 446.1 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007839/0.2694, allocations: 468.4 kB / 446.6 MB, free: 33.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002107/0.2715, allocations: 1.267 MB / 447.9 MB, free: 33.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001673/0.2732, allocations: 0.7972 MB / 448.7 MB, free: 32.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003219/0.2735, allocations: 260.9 kB / 448.9 MB, free: 32.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.746e-05/0.2736, allocations: 3.812 kB / 448.9 MB, free: 32.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.013e-05/0.2736, allocations: 41.56 kB / 449 MB, free: 32.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.804e-06/0.2736, allocations: 3.938 kB / 449 MB, free: 32.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002903/0.2765, allocations: 1.502 MB / 450.5 MB, free: 32.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/0.2766, allocations: 64.88 kB / 450.5 MB, free: 32.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002295/0.2789, allocations: 1.035 MB / 451.6 MB, free: 31.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.97e-05/0.2789, allocations: 36.3 kB / 451.6 MB, free: 31.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.2791, allocations: 290.6 kB / 451.9 MB, free: 31.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/0.2793, allocations: 181.9 kB / 452.1 MB, free: 31.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000144/0.2794, allocations: 86.88 kB / 452.1 MB, free: 31.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.487e-05/0.2795, allocations: 327.1 kB / 452.5 MB, free: 30.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003441/0.2799, allocations: 217.8 kB / 452.7 MB, free: 30.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003176/0.2802, allocations: 223.1 kB / 452.9 MB, free: 30.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004056/0.2842, allocations: 1.42 MB / 454.3 MB, free: 30.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.2843, allocations: 0 / 454.3 MB, free: 30.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001629/0.2859, allocations: 0.8972 MB / 455.2 MB, free: 30.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.2859, allocations: 6.203 kB / 455.2 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.2859, allocations: 0 / 455.2 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006469/0.2866, allocations: 221.1 kB / 455.4 MB, free: 30.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003384/0.2869, allocations: 78.38 kB / 455.5 MB, free: 30.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004191/0.2911, allocations: 6.421 MB / 461.9 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/0.2924, allocations: 183.6 kB / 462.1 MB, free: 24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-05/0.2924, allocations: 18.09 kB / 462.1 MB, free: 24 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.0004109/0.2928, allocations: 247.3 kB / 462.4 MB, free: 23.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001526/0.293, allocations: 75.59 kB / 462.4 MB, free: 23.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001805/0.2932, allocations: 104.8 kB / 462.5 MB, free: 23.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.2932, allocations: 4.406 kB / 462.5 MB, free: 23.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.981e-05/0.2932, allocations: 3.125 kB / 462.6 MB, free: 23.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.2932, allocations: 1.5 kB / 462.6 MB, free: 23.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008114/0.294, allocations: 0.639 MB / 463.2 MB, free: 23.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.2941, allocations: 0 / 463.2 MB, free: 23.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003894/0.2944, allocations: 58.14 kB / 463.2 MB, free: 23.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006162/0.2951, allocations: 224.8 kB / 463.5 MB, free: 23.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.048e-05/0.2951, allocations: 17.53 kB / 463.5 MB, free: 23.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004178/0.2993, allocations: 6.407 MB / 469.9 MB, free: 17.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2993, allocations: 4 kB / 469.9 MB, free: 17.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002091/0.3014, allocations: 1.195 MB / 471.1 MB, free: 16.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001634/0.3016, allocations: 165.7 kB / 471.3 MB, free: 16.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.192e-05/0.3017, allocations: 16.92 kB / 471.3 MB, free: 16.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.3028, allocations: 157.9 kB / 471.4 MB, free: 16.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.3029, allocations: 38.39 kB / 471.5 MB, free: 16.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.13e-05/0.303, allocations: 8.891 kB / 471.5 MB, free: 16.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002341/0.3053, allocations: 0.8263 MB / 472.3 MB, free: 16.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3053, allocations: 0.9375 kB / 472.3 MB, free: 16.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005851/0.3059, allocations: 150.2 kB / 472.4 MB, free: 16.36 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.0001545/0.3061, allocations: 121.2 kB / 472.6 MB, free: 16.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.3077, allocations: 1.142 MB / 473.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3077, allocations: 0 / 473.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008403/0.3086, allocations: 0.7694 MB / 474.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007161/0.3093, allocations: 131.1 kB / 474.6 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.3118, allocations: 1.689 MB / 476.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004988/0.3123, allocations: 0.9888 MB / 477.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000411/0.3127, allocations: 151.6 kB / 477.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001575/0.3129, allocations: 46.23 kB / 477.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.3129, allocations: 0 / 477.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of Templates: time 0.0146/0.3275, allocations: 8.596 MB / 486.1 MB, free: 9.578 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)