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.001115/0.001115, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001152/0.001152, allocations: 194.5 kB / 16.14 MB, free: 6.648 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.316/1.316, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1946/0.1946, allocations: 22.35 MB / 312.3 MB, free: 12.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002099/0.002099, allocations: 63.91 kB / 380.1 MB, free: 11.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2915, allocations: 54.94 MB / 435.1 MB, free: 39.46 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.002696/0.2943, allocations: 1.797 MB / 436.9 MB, free: 38.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002262/0.2966, allocations: 1.735 MB / 438.6 MB, free: 37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004095/0.297, allocations: 9.812 kB / 438.6 MB, free: 37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005593/0.2976, allocations: 177.3 kB / 438.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005586/0.2982, allocations: 229 kB / 439 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006463/0.2988, allocations: 390.6 kB / 439.4 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001036/0.2999, allocations: 1.142 MB / 440.5 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002171/0.3001, allocations: 110.1 kB / 440.6 MB, free: 36.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000591/0.3007, allocations: 449.2 kB / 441.1 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000625/0.3013, allocations: 0.4957 MB / 441.6 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002066/0.3016, allocations: 33.03 kB / 441.6 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000159/0.3017, allocations: 32.31 kB / 441.6 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002705/0.302, allocations: 241 kB / 441.9 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003316/0.3023, allocations: 282.3 kB / 442.1 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004586/0.3028, allocations: 0.6069 MB / 442.7 MB, free: 35.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3028, allocations: 0 / 442.7 MB, free: 35.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3028, allocations: 0 / 442.7 MB, free: 35.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.023e-05/0.3029, allocations: 3.781 kB / 442.7 MB, free: 35.36 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.00432/0.3072, allocations: 1.517 MB / 444.3 MB, free: 34.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.3072, allocations: 12.69 kB / 444.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001499/0.3074, allocations: 87.09 kB / 444.4 MB, free: 34.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002162/0.3096, allocations: 0.892 MB / 445.3 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.3096, allocations: 20.28 kB / 445.3 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.452e-05/0.3097, allocations: 32.12 kB / 445.3 MB, free: 34.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005571/0.3102, allocations: 379.3 kB / 445.7 MB, free: 34.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.3103, allocations: 3.938 kB / 445.7 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.492e-05/0.3103, allocations: 10.97 kB / 445.7 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.3103, allocations: 5.812 kB / 445.7 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006836/0.311, allocations: 462.9 kB / 446.1 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.313, allocations: 1.268 MB / 447.4 MB, free: 33.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001564/0.3146, allocations: 0.7976 MB / 448.2 MB, free: 33.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003157/0.3149, allocations: 261.9 kB / 448.5 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.315, allocations: 9.625 kB / 448.5 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.865e-05/0.315, allocations: 42.88 kB / 448.5 MB, free: 32.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.883e-06/0.315, allocations: 0 / 448.5 MB, free: 32.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002772/0.3178, allocations: 1.504 MB / 450 MB, free: 32.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.5e-05/0.3178, allocations: 57.75 kB / 450.1 MB, free: 32.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002129/0.3199, allocations: 1.041 MB / 451.1 MB, free: 31.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.416e-05/0.32, allocations: 32.95 kB / 451.1 MB, free: 31.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.3201, allocations: 295.8 kB / 451.4 MB, free: 31.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/0.3203, allocations: 181.2 kB / 451.6 MB, free: 31.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.3204, allocations: 81.22 kB / 451.7 MB, free: 31.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.795e-05/0.3204, allocations: 326.4 kB / 452 MB, free: 31.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000293/0.3207, allocations: 221.8 kB / 452.2 MB, free: 30.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002753/0.321, allocations: 225 kB / 452.4 MB, free: 30.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003891/0.3249, allocations: 1.411 MB / 453.9 MB, free: 30.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3249, allocations: 0 / 453.9 MB, free: 30.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001511/0.3265, allocations: 0.8971 MB / 454.8 MB, free: 30.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.3265, allocations: 6.703 kB / 454.8 MB, free: 30.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.3265, allocations: 1.062 kB / 454.8 MB, free: 30.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006147/0.3271, allocations: 223.4 kB / 455 MB, free: 30.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003108/0.3274, allocations: 71.86 kB / 455.1 MB, free: 30.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003754/0.3312, allocations: 6.008 MB / 461.1 MB, free: 24.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001146/0.3324, allocations: 185.1 kB / 461.2 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.112e-05/0.3324, allocations: 14.75 kB / 461.3 MB, free: 24.48 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.0003632/0.3328, allocations: 261.7 kB / 461.5 MB, free: 24.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.3329, allocations: 67.86 kB / 461.6 MB, free: 24.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000163/0.3331, allocations: 100.2 kB / 461.7 MB, free: 24.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.3331, allocations: 4.594 kB / 461.7 MB, free: 24.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-05/0.3331, allocations: 2.438 kB / 461.7 MB, free: 24.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.3331, allocations: 10.31 kB / 461.7 MB, free: 24.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007721/0.3339, allocations: 0.6313 MB / 462.3 MB, free: 23.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.3339, allocations: 0.8906 kB / 462.3 MB, free: 23.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003725/0.3343, allocations: 58.55 kB / 462.4 MB, free: 23.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005994/0.3349, allocations: 216.3 kB / 462.6 MB, free: 23.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.519e-05/0.335, allocations: 21.64 kB / 462.6 MB, free: 23.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003863/0.3388, allocations: 5.998 MB / 468.6 MB, free: 18.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.3389, allocations: 9.188 kB / 468.6 MB, free: 18.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002027/0.3409, allocations: 1.194 MB / 469.8 MB, free: 17.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001887/0.3411, allocations: 162.2 kB / 470 MB, free: 17.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.814e-05/0.3412, allocations: 17.2 kB / 470 MB, free: 17.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.3422, allocations: 158.1 kB / 470.1 MB, free: 17.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.3424, allocations: 37.81 kB / 470.2 MB, free: 17.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.097e-05/0.3424, allocations: 14.97 kB / 470.2 MB, free: 17.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002257/0.3447, allocations: 0.8265 MB / 471 MB, free: 17.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3447, allocations: 0 / 471 MB, free: 17.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006202/0.3453, allocations: 145.9 kB / 471.2 MB, free: 17.24 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.0001361/0.3455, allocations: 124.2 kB / 471.3 MB, free: 17.13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00144/0.3469, allocations: 1.05 MB / 472.3 MB, free: 16.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3469, allocations: 0 / 472.3 MB, free: 16.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008441/0.3478, allocations: 0.772 MB / 473.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007222/0.3485, allocations: 128.1 kB / 473.2 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002221/0.3508, allocations: 1.69 MB / 474.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000452/0.3512, allocations: 0.9859 MB / 475.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003592/0.3516, allocations: 151.6 kB / 476.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.3517, allocations: 41.31 kB / 476.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.3518, allocations: 1.406 kB / 476.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of Templates: time 0.01373/0.3655, allocations: 8.164 MB / 484.3 MB, free: 11.27 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)