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.004549/0.004549, allocations: 101.1 kB / 15.88 MB, free: 6.328 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.001146/0.001146, allocations: 194.3 kB / 16.79 MB, free: 6.254 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.326/1.326, allocations: 222.9 MB / 240.5 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1868/0.1868, allocations: 22.36 MB / 313 MB, free: 12.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 67.91 kB / 380.8 MB, free: 11.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2598, allocations: 54.93 MB / 435.7 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.002711/0.2626, allocations: 1.813 MB / 437.5 MB, free: 38.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002221/0.2648, allocations: 1.731 MB / 439.3 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003567/0.2652, allocations: 6.844 kB / 439.3 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006121/0.2658, allocations: 180.5 kB / 439.4 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005934/0.2665, allocations: 228.3 kB / 439.7 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000702/0.2672, allocations: 381.2 kB / 440 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001104/0.2683, allocations: 1.144 MB / 441.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002547/0.2686, allocations: 116.4 kB / 441.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006139/0.2692, allocations: 445.3 kB / 441.7 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006506/0.2698, allocations: 0.501 MB / 442.2 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000209/0.2701, allocations: 32.25 kB / 442.3 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001376/0.2702, allocations: 33.44 kB / 442.3 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002672/0.2705, allocations: 248.4 kB / 442.5 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003064/0.2708, allocations: 274 kB / 442.8 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004001/0.2712, allocations: 486.8 kB / 443.3 MB, free: 35.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.2712, allocations: 0 / 443.3 MB, free: 35.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.11e-07/0.2712, allocations: 2.75 kB / 443.3 MB, free: 35.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.224e-05/0.2713, allocations: 0 / 443.3 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.004712/0.276, allocations: 1.516 MB / 444.8 MB, free: 34.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.276, allocations: 12.59 kB / 444.8 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001908/0.2762, allocations: 81.19 kB / 444.9 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002372/0.2786, allocations: 0.8949 MB / 445.8 MB, free: 34.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.579e-05/0.2787, allocations: 20.53 kB / 445.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.547e-05/0.2787, allocations: 36.59 kB / 445.8 MB, free: 34.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005891/0.2793, allocations: 378.8 kB / 446.2 MB, free: 34.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.2793, allocations: 0 / 446.2 MB, free: 34.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.41e-05/0.2794, allocations: 11.06 kB / 446.2 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.2794, allocations: 8.438 kB / 446.2 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006809/0.2801, allocations: 466.3 kB / 446.7 MB, free: 34.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002036/0.2821, allocations: 1.265 MB / 447.9 MB, free: 33.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001634/0.2838, allocations: 0.7933 MB / 448.7 MB, free: 33.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003181/0.2841, allocations: 259.9 kB / 449 MB, free: 33.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.706e-05/0.2842, allocations: 3.062 kB / 449 MB, free: 33.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.764e-05/0.2842, allocations: 37.62 kB / 449 MB, free: 33.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.964e-06/0.2842, allocations: 0 / 449 MB, free: 33.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002966/0.2872, allocations: 1.508 MB / 450.5 MB, free: 32.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.897e-05/0.2872, allocations: 60.98 kB / 450.6 MB, free: 32.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002337/0.2895, allocations: 1.034 MB / 451.6 MB, free: 31.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.23e-05/0.2896, allocations: 36.42 kB / 451.7 MB, free: 31.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.2898, allocations: 297.6 kB / 452 MB, free: 31.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.2899, allocations: 182 kB / 452.1 MB, free: 31.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/0.2901, allocations: 80.03 kB / 452.2 MB, free: 31.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.192e-05/0.2901, allocations: 326.8 kB / 452.5 MB, free: 31.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003417/0.2905, allocations: 223 kB / 452.8 MB, free: 31.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002938/0.2908, allocations: 223 kB / 453 MB, free: 31.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004032/0.2948, allocations: 1.418 MB / 454.4 MB, free: 30.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.2948, allocations: 3.938 kB / 454.4 MB, free: 30.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001559/0.2964, allocations: 0.8989 MB / 455.3 MB, free: 30.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.2964, allocations: 5 kB / 455.3 MB, free: 30.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.2965, allocations: 4.609 kB / 455.3 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006606/0.2971, allocations: 219.9 kB / 455.5 MB, free: 30.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003353/0.2975, allocations: 79.58 kB / 455.6 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004041/0.3015, allocations: 6.003 MB / 461.6 MB, free: 24.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001172/0.3027, allocations: 181.5 kB / 461.8 MB, free: 24.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-05/0.3028, allocations: 18.86 kB / 461.8 MB, free: 24.66 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.0003915/0.3032, allocations: 254 kB / 462 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001709/0.3034, allocations: 68.42 kB / 462.1 MB, free: 24.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001917/0.3036, allocations: 103.8 kB / 462.2 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3036, allocations: 5.281 kB / 462.2 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/0.3036, allocations: 5.781 kB / 462.2 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.3036, allocations: 6.797 kB / 462.2 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000748/0.3044, allocations: 0.6262 MB / 462.9 MB, free: 24.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.3044, allocations: 1.656 kB / 462.9 MB, free: 24.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003761/0.3047, allocations: 58.28 kB / 462.9 MB, free: 24.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006667/0.3054, allocations: 224.1 kB / 463.1 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.766e-05/0.3055, allocations: 18.48 kB / 463.1 MB, free: 23.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00424/0.3097, allocations: 5.994 MB / 469.1 MB, free: 18.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.3098, allocations: 5.719 kB / 469.1 MB, free: 18.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002192/0.312, allocations: 1.19 MB / 470.3 MB, free: 17.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002777/0.3123, allocations: 166.5 kB / 470.5 MB, free: 17.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/0.3124, allocations: 17.31 kB / 470.5 MB, free: 17.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/0.3136, allocations: 159.9 kB / 470.7 MB, free: 17.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.3137, allocations: 40.72 kB / 470.7 MB, free: 17.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.329e-05/0.3138, allocations: 8.438 kB / 470.7 MB, free: 17.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002349/0.3161, allocations: 0.8225 MB / 471.5 MB, free: 17.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3161, allocations: 0 / 471.5 MB, free: 17.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007105/0.3168, allocations: 150.3 kB / 471.7 MB, free: 17.43 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.0001527/0.317, allocations: 121.5 kB / 471.8 MB, free: 17.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00156/0.3186, allocations: 1.062 MB / 472.9 MB, free: 16.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3186, allocations: 0 / 472.9 MB, free: 16.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008663/0.3195, allocations: 0.7649 MB / 473.6 MB, free: 16.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000739/0.3202, allocations: 136.8 kB / 473.8 MB, free: 16.08 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002384/0.3226, allocations: 1.751 MB / 475.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.3231, allocations: 0.9776 MB / 476.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002021/0.3233, allocations: 44.34 kB / 476.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3233, allocations: 4 kB / 476.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of Templates: time 0.01827/0.3416, allocations: 17.07 MB / 493.6 MB, free: 2.633 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)