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.000723/0.0007231, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.0007619/0.0007619, allocations: 168.7 kB / 15.95 MB, free: 204 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.265/1.265, allocations: 223.3 MB / 240 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1838/0.1838, allocations: 22.35 MB / 313.4 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000271/0.000271, allocations: 11.98 kB / 382 MB, free: 10.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2263, allocations: 55.97 MB / 437.9 MB, free: 39.2 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.001232/0.2276, allocations: 1.343 MB / 439.3 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001529/0.2292, allocations: 1.709 MB / 441 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.2293, allocations: 6.719 kB / 441 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003964/0.2297, allocations: 171.1 kB / 441.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003688/0.2301, allocations: 218.4 kB / 441.4 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004413/0.2305, allocations: 347.4 kB / 441.7 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007093/0.2313, allocations: 0.9837 MB / 442.7 MB, free: 36.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.2314, allocations: 100.7 kB / 442.8 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000378/0.2318, allocations: 0.5062 MB / 443.3 MB, free: 36.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000447/0.2323, allocations: 0.4973 MB / 443.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.161e-05/0.2323, allocations: 27.38 kB / 443.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.101e-05/0.2324, allocations: 26.69 kB / 443.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001788/0.2326, allocations: 222.2 kB / 444.1 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.958e-05/0.2327, allocations: 102.3 kB / 444.2 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002804/0.233, allocations: 484.8 kB / 444.6 MB, free: 35.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.233, allocations: 0 / 444.6 MB, free: 35.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.233, allocations: 3.938 kB / 444.6 MB, free: 35.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.233, allocations: 3.938 kB / 444.6 MB, free: 35.76 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.003405/0.2364, allocations: 1.441 MB / 446.1 MB, free: 35.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.028e-05/0.2364, allocations: 11.44 kB / 446.1 MB, free: 35.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.804e-05/0.2365, allocations: 78.5 kB / 446.2 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001845/0.2384, allocations: 0.8735 MB / 447 MB, free: 34.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.575e-05/0.2384, allocations: 20.25 kB / 447.1 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.622e-05/0.2385, allocations: 38.91 kB / 447.1 MB, free: 34.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005117/0.239, allocations: 369.8 kB / 447.5 MB, free: 34.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.239, allocations: 0 / 447.5 MB, free: 34.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.206e-05/0.2391, allocations: 15.42 kB / 447.5 MB, free: 34.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.2391, allocations: 5.438 kB / 447.5 MB, free: 34.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006412/0.2397, allocations: 466.4 kB / 447.9 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00175/0.2415, allocations: 1.264 MB / 449.2 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.243, allocations: 0.8017 MB / 450 MB, free: 33.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003133/0.2434, allocations: 259.7 kB / 450.3 MB, free: 33.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.751e-05/0.2434, allocations: 9.469 kB / 450.3 MB, free: 33.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.44e-05/0.2434, allocations: 37.28 kB / 450.3 MB, free: 33.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.424e-06/0.2434, allocations: 4 kB / 450.3 MB, free: 33.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002595/0.246, allocations: 1.505 MB / 451.8 MB, free: 32.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.241e-05/0.2461, allocations: 58.09 kB / 451.9 MB, free: 32.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001957/0.248, allocations: 1.051 MB / 452.9 MB, free: 32.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/0.2481, allocations: 29.7 kB / 452.9 MB, free: 32.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.2482, allocations: 295.3 kB / 453.2 MB, free: 32.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.873e-05/0.2483, allocations: 184 kB / 453.4 MB, free: 31.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.348e-05/0.2483, allocations: 7.281 kB / 453.4 MB, free: 31.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.263e-05/0.2484, allocations: 330.8 kB / 453.7 MB, free: 31.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002772/0.2487, allocations: 211.3 kB / 454 MB, free: 31.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003034/0.249, allocations: 224.6 kB / 454.2 MB, free: 31.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003659/0.2494, allocations: 271.3 kB / 454.4 MB, free: 31.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.2494, allocations: 0 / 454.4 MB, free: 31.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001354/0.2507, allocations: 0.885 MB / 455.3 MB, free: 30.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.2508, allocations: 4.844 kB / 455.3 MB, free: 30.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.2508, allocations: 1 kB / 455.3 MB, free: 30.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005579/0.2513, allocations: 229.6 kB / 455.6 MB, free: 30.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002929/0.2516, allocations: 72.5 kB / 455.6 MB, free: 30.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003448/0.2551, allocations: 6.01 MB / 461.6 MB, free: 25.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009444/0.256, allocations: 192.5 kB / 461.8 MB, free: 25.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.286e-05/0.2561, allocations: 22.59 kB / 461.8 MB, free: 25.28 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.0002831/0.2564, allocations: 248.5 kB / 462.1 MB, free: 25.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.78e-05/0.2565, allocations: 72.06 kB / 462.2 MB, free: 25.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001943/0.2567, allocations: 107.3 kB / 462.3 MB, free: 25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.2567, allocations: 9.188 kB / 462.3 MB, free: 25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.2567, allocations: 2.344 kB / 462.3 MB, free: 25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.2567, allocations: 2.484 kB / 462.3 MB, free: 25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006308/0.2574, allocations: 0.6352 MB / 462.9 MB, free: 24.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2574, allocations: 0 / 462.9 MB, free: 24.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003339/0.2577, allocations: 55.08 kB / 463 MB, free: 24.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004935/0.2582, allocations: 219.9 kB / 463.2 MB, free: 24.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.959e-05/0.2583, allocations: 17.22 kB / 463.2 MB, free: 24.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003341/0.2616, allocations: 6.008 MB / 469.2 MB, free: 19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2616, allocations: 0.6562 kB / 469.2 MB, free: 19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001682/0.2633, allocations: 1.184 MB / 470.4 MB, free: 18.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.2635, allocations: 171 kB / 470.6 MB, free: 18.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.087e-05/0.2635, allocations: 15.91 kB / 470.6 MB, free: 18.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009134/0.2645, allocations: 161.4 kB / 470.7 MB, free: 18.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.171e-05/0.2646, allocations: 39.42 kB / 470.8 MB, free: 18.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.2646, allocations: 16.48 kB / 470.8 MB, free: 18.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001917/0.2665, allocations: 0.8311 MB / 471.6 MB, free: 18.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2665, allocations: 1.531 kB / 471.6 MB, free: 18.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005312/0.2671, allocations: 149.2 kB / 471.8 MB, free: 18.04 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.0001158/0.2672, allocations: 124.5 kB / 471.9 MB, free: 17.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.2685, allocations: 1.062 MB / 472.9 MB, free: 17.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2685, allocations: 0 / 472.9 MB, free: 17.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007724/0.2693, allocations: 0.7706 MB / 473.7 MB, free: 16.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000601/0.2699, allocations: 127.3 kB / 473.8 MB, free: 16.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002069/0.272, allocations: 1.658 MB / 475.5 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/0.2724, allocations: 0.9855 MB / 476.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003308/0.2727, allocations: 151.6 kB / 476.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.2728, allocations: 42.59 kB / 476.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2728, allocations: 0 / 476.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of Templates: time 0.01188/0.2847, allocations: 7.78 MB / 484.5 MB, free: 12.49 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)