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.0009553/0.0009553, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009185/0.0009185, allocations: 177.3 kB / 15.94 MB, free: 228 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.528/1.528, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2842/0.2842, allocations: 22.34 MB / 313.3 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003239/0.0003242, allocations: 11.94 kB / 381.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3042, allocations: 55.98 MB / 437.8 MB, free: 39.25 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.001865/0.3062, allocations: 1.361 MB / 439.2 MB, free: 38.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002058/0.3082, allocations: 1.716 MB / 440.9 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001728/0.3084, allocations: 2.531 kB / 440.9 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005106/0.3089, allocations: 173.1 kB / 441.1 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004069/0.3094, allocations: 239.7 kB / 441.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005105/0.3099, allocations: 326.4 kB / 441.6 MB, free: 36.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005934/0.3105, allocations: 0.6388 MB / 442.3 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.3107, allocations: 102.1 kB / 442.4 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005448/0.3112, allocations: 0.5337 MB / 442.9 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000462/0.3117, allocations: 454.3 kB / 443.3 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.521e-05/0.3118, allocations: 25.62 kB / 443.4 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.612e-05/0.3119, allocations: 31.09 kB / 443.4 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002244/0.3121, allocations: 214.9 kB / 443.6 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.163e-05/0.3122, allocations: 105.8 kB / 443.7 MB, free: 36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003574/0.3126, allocations: 480.5 kB / 444.2 MB, free: 35.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3126, allocations: 4 kB / 444.2 MB, free: 35.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3126, allocations: 0 / 444.2 MB, free: 35.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.3126, allocations: 0 / 444.2 MB, free: 35.89 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.003999/0.3166, allocations: 1.448 MB / 445.6 MB, free: 35.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.3167, allocations: 11.09 kB / 445.6 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.3168, allocations: 73.91 kB / 445.7 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002348/0.3191, allocations: 0.8849 MB / 446.6 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.122e-05/0.3192, allocations: 20.38 kB / 446.6 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.516e-05/0.3193, allocations: 31.16 kB / 446.6 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005759/0.3199, allocations: 368.1 kB / 447 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.3199, allocations: 0 / 447 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.842e-05/0.3199, allocations: 19.05 kB / 447 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.3199, allocations: 8.219 kB / 447 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007292/0.3207, allocations: 460.9 kB / 447.5 MB, free: 34.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0022/0.3229, allocations: 1.27 MB / 448.8 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001653/0.3246, allocations: 0.7982 MB / 449.6 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.504e-05/0.3246, allocations: 6.094 kB / 449.6 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.204e-05/0.3246, allocations: 40.86 kB / 449.6 MB, free: 33.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 3.005e-06/0.3246, allocations: 0 / 449.6 MB, free: 33.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.00304/0.3277, allocations: 1.504 MB / 451.1 MB, free: 32.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.066e-05/0.3277, allocations: 57.19 kB / 451.2 MB, free: 32.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002305/0.33, allocations: 1.044 MB / 452.2 MB, free: 32.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.425e-05/0.3301, allocations: 36.36 kB / 452.2 MB, free: 32.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.3303, allocations: 298.9 kB / 452.5 MB, free: 32.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.3304, allocations: 186.3 kB / 452.7 MB, free: 32.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.641e-05/0.3305, allocations: 10.66 kB / 452.7 MB, free: 32.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.946e-05/0.3305, allocations: 321.9 kB / 453 MB, free: 31.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002872/0.3308, allocations: 222.1 kB / 453.3 MB, free: 31.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003066/0.3311, allocations: 221.8 kB / 453.5 MB, free: 31.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003806/0.3315, allocations: 263.9 kB / 453.7 MB, free: 31.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3315, allocations: 3.953 kB / 453.7 MB, free: 31.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001609/0.3332, allocations: 0.8862 MB / 454.6 MB, free: 31.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.863e-05/0.3332, allocations: 5.406 kB / 454.6 MB, free: 31.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.3332, allocations: 0 / 454.6 MB, free: 31.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007487/0.334, allocations: 223.7 kB / 454.8 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003659/0.3344, allocations: 77.05 kB / 454.9 MB, free: 31.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004571/0.3389, allocations: 6.047 MB / 461 MB, free: 25.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001321/0.3403, allocations: 188.6 kB / 461.1 MB, free: 25.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.01e-05/0.3403, allocations: 13.59 kB / 461.2 MB, free: 25.49 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.0004525/0.3408, allocations: 258.3 kB / 461.4 MB, free: 25.31 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.3409, allocations: 70.89 kB / 461.5 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002126/0.3412, allocations: 104.1 kB / 461.6 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.3412, allocations: 5 kB / 461.6 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.228e-05/0.3412, allocations: 2.469 kB / 461.6 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.3412, allocations: 2.812 kB / 461.6 MB, free: 25.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009439/0.3422, allocations: 0.631 MB / 462.2 MB, free: 24.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.3422, allocations: 4.516 kB / 462.2 MB, free: 24.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003903/0.3426, allocations: 57.98 kB / 462.3 MB, free: 24.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006087/0.3432, allocations: 218.2 kB / 462.5 MB, free: 24.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.291e-05/0.3432, allocations: 15.59 kB / 462.5 MB, free: 24.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004013/0.3473, allocations: 6.048 MB / 468.6 MB, free: 19.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3473, allocations: 0 / 468.6 MB, free: 19.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002211/0.3495, allocations: 1.187 MB / 469.7 MB, free: 18.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002346/0.3497, allocations: 170.4 kB / 469.9 MB, free: 18.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.152e-05/0.3498, allocations: 17.08 kB / 469.9 MB, free: 18.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001182/0.351, allocations: 165.9 kB / 470.1 MB, free: 18.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/0.3512, allocations: 37.97 kB / 470.1 MB, free: 18.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.632e-05/0.3512, allocations: 9.5 kB / 470.1 MB, free: 18.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002571/0.3538, allocations: 0.8391 MB / 471 MB, free: 18.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3538, allocations: 1.219 kB / 471 MB, free: 18.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008708/0.3547, allocations: 150 kB / 471.1 MB, free: 18.22 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.0002022/0.3549, allocations: 123.7 kB / 471.2 MB, free: 18.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001766/0.3567, allocations: 1.058 MB / 472.3 MB, free: 17.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.3567, allocations: 0 / 472.3 MB, free: 17.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001116/0.3578, allocations: 0.7625 MB / 473.1 MB, free: 16.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006478/0.3585, allocations: 117.9 kB / 473.2 MB, free: 16.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00272/0.3612, allocations: 1.656 MB / 474.8 MB, free: 16.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007245/0.362, allocations: 0.9958 MB / 475.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005263/0.3625, allocations: 152.1 kB / 476 MB, free: 15.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/0.3627, allocations: 45.08 kB / 476 MB, free: 15.3 MB / 350.1 MB Notification: Performance of SimCode: time 1.353e-06/0.3627, allocations: 0 / 476 MB, free: 15.3 MB / 350.1 MB Notification: Performance of Templates: time 0.01687/0.3796, allocations: 7.781 MB / 483.8 MB, free: 12.73 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: