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.001541/0.001541, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001726/0.001727, allocations: 195.4 kB / 16.53 MB, free: 6.664 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.335/1.335, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2261/0.2261, allocations: 22.36 MB / 312.7 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 63.91 kB / 380.8 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3045, allocations: 54.95 MB / 435.8 MB, free: 39.73 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.003166/0.3077, allocations: 1.766 MB / 437.5 MB, free: 38.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002179/0.31, allocations: 1.746 MB / 439.3 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002218/0.3102, allocations: 9.531 kB / 439.3 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005929/0.3108, allocations: 201.2 kB / 439.5 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004815/0.3113, allocations: 259.2 kB / 439.8 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007514/0.3121, allocations: 405.9 kB / 440.1 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009085/0.313, allocations: 1.189 MB / 441.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002084/0.3132, allocations: 121.2 kB / 441.5 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004801/0.3137, allocations: 485.3 kB / 441.9 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000703/0.3144, allocations: 0.5232 MB / 442.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001398/0.3146, allocations: 60.06 kB / 442.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001278/0.3147, allocations: 62.56 kB / 442.6 MB, free: 36.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003093/0.315, allocations: 256 kB / 442.8 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002965/0.3153, allocations: 304.9 kB / 443.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007438/0.3161, allocations: 0.6319 MB / 443.8 MB, free: 35.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.387e-06/0.3161, allocations: 0 / 443.8 MB, free: 35.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3161, allocations: 0 / 443.8 MB, free: 35.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.515e-05/0.3161, allocations: 0 / 443.8 MB, free: 35.46 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.004846/0.321, allocations: 1.523 MB / 445.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.321, allocations: 10.34 kB / 445.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/0.3212, allocations: 79.12 kB / 445.4 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00239/0.3236, allocations: 0.889 MB / 446.3 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.159e-05/0.3237, allocations: 19.66 kB / 446.3 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.239e-05/0.3237, allocations: 34.72 kB / 446.3 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000627/0.3244, allocations: 380.6 kB / 446.7 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.3244, allocations: 0 / 446.7 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.744e-05/0.3245, allocations: 10.69 kB / 446.7 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.3245, allocations: 8.281 kB / 446.7 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006505/0.3251, allocations: 470.8 kB / 447.2 MB, free: 33.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002055/0.3272, allocations: 1.268 MB / 448.4 MB, free: 33.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001718/0.3289, allocations: 0.7971 MB / 449.2 MB, free: 33.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000358/0.3293, allocations: 258.2 kB / 449.5 MB, free: 33.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/0.3293, allocations: 7.719 kB / 449.5 MB, free: 33.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/0.3294, allocations: 35 kB / 449.5 MB, free: 33.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 4.93e-06/0.3294, allocations: 0 / 449.5 MB, free: 33.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.003032/0.3324, allocations: 1.513 MB / 451 MB, free: 32.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.071e-05/0.3325, allocations: 54.91 kB / 451.1 MB, free: 32.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00231/0.3348, allocations: 1.037 MB / 452.1 MB, free: 31.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.426e-05/0.3348, allocations: 35.92 kB / 452.2 MB, free: 31.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001715/0.335, allocations: 298.2 kB / 452.4 MB, free: 31.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/0.3351, allocations: 179.7 kB / 452.6 MB, free: 31.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.3353, allocations: 82.12 kB / 452.7 MB, free: 31.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.962e-05/0.3354, allocations: 326.9 kB / 453 MB, free: 31.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000334/0.3357, allocations: 220.7 kB / 453.2 MB, free: 31.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003259/0.336, allocations: 221.8 kB / 453.5 MB, free: 30.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003923/0.34, allocations: 1.415 MB / 454.9 MB, free: 30.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.34, allocations: 1.312 kB / 454.9 MB, free: 30.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001627/0.3416, allocations: 0.8997 MB / 455.8 MB, free: 30.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.3416, allocations: 8.641 kB / 455.8 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3416, allocations: 0 / 455.8 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006607/0.3423, allocations: 220.4 kB / 456 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003312/0.3427, allocations: 74.28 kB / 456.1 MB, free: 30.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004156/0.3468, allocations: 6.412 MB / 462.5 MB, free: 24.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001143/0.348, allocations: 180.5 kB / 462.7 MB, free: 24.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.987e-05/0.348, allocations: 18.06 kB / 462.7 MB, free: 24.18 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.0004043/0.3484, allocations: 257.7 kB / 462.9 MB, free: 24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001765/0.3486, allocations: 71.44 kB / 463 MB, free: 23.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001725/0.3488, allocations: 99.58 kB / 463.1 MB, free: 23.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.3488, allocations: 9.188 kB / 463.1 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.871e-05/0.3488, allocations: 10.19 kB / 463.1 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.3489, allocations: 3.016 kB / 463.1 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008141/0.3497, allocations: 0.6391 MB / 463.7 MB, free: 23.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.3497, allocations: 0 / 463.7 MB, free: 23.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003744/0.3501, allocations: 58.55 kB / 463.8 MB, free: 23.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005773/0.3507, allocations: 229.1 kB / 464 MB, free: 23.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.467e-05/0.3507, allocations: 12.52 kB / 464 MB, free: 23.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00395/0.3547, allocations: 6.411 MB / 470.5 MB, free: 17.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3547, allocations: 4.734 kB / 470.5 MB, free: 17.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001863/0.3566, allocations: 1.191 MB / 471.6 MB, free: 16.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001519/0.3567, allocations: 165.8 kB / 471.8 MB, free: 16.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.461e-05/0.3568, allocations: 16.56 kB / 471.8 MB, free: 16.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.3579, allocations: 157.9 kB / 472 MB, free: 16.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.358, allocations: 39.53 kB / 472 MB, free: 16.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.861e-05/0.358, allocations: 8.203 kB / 472 MB, free: 16.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002204/0.3603, allocations: 0.8227 MB / 472.9 MB, free: 16.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.3603, allocations: 0.6875 kB / 472.9 MB, free: 16.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006001/0.3609, allocations: 153.5 kB / 473 MB, free: 16.53 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.0001585/0.361, allocations: 121.2 kB / 473.1 MB, free: 16.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001579/0.3626, allocations: 1.146 MB / 474.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.3626, allocations: 0 / 474.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000861/0.3635, allocations: 0.7691 MB / 475 MB, free: 15.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007101/0.3642, allocations: 138 kB / 475.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002423/0.3667, allocations: 1.509 MB / 476.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004881/0.3672, allocations: 0.9789 MB / 477.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003756/0.3675, allocations: 154.3 kB / 477.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001422/0.3677, allocations: 46.69 kB / 477.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3677, allocations: 0 / 477.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of Templates: time 0.01422/0.3819, allocations: 8.581 MB / 486.4 MB, free: 9.559 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)