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.001195/0.001195, allocations: 105.1 kB / 15.98 MB, free: 6.355 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.001201/0.001201, allocations: 192.5 kB / 16.91 MB, free: 6.191 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.202/1.202, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08464/0.08464, allocations: 22.33 MB / 313.1 MB, free: 9.133 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 64.17 kB / 380.9 MB, free: 41.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07208/0.0734, allocations: 54.96 MB / 435.9 MB, free: 13.53 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen): time 0.0026/0.07602, allocations: 1.789 MB / 437.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001962/0.078, allocations: 1.728 MB / 439.4 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.07815, allocations: 7.938 kB / 439.4 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000447/0.07861, allocations: 183.2 kB / 439.6 MB, free: 9.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004432/0.07907, allocations: 243 kB / 439.8 MB, free: 9.559 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005203/0.0796, allocations: 379.4 kB / 440.2 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009554/0.08057, allocations: 1.186 MB / 441.4 MB, free: 8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.08075, allocations: 116.8 kB / 441.5 MB, free: 7.887 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004349/0.0812, allocations: 0.4944 MB / 442 MB, free: 7.391 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000511/0.08172, allocations: 0.5332 MB / 442.5 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.608e-05/0.08181, allocations: 56 kB / 442.6 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.718e-05/0.08189, allocations: 56 kB / 442.6 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002312/0.08213, allocations: 267.2 kB / 442.9 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002228/0.08236, allocations: 298 kB / 443.2 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003983/0.08277, allocations: 0.4991 MB / 443.7 MB, free: 5.691 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.08278, allocations: 0 / 443.7 MB, free: 5.691 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.08278, allocations: 0 / 443.7 MB, free: 5.691 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.0828, allocations: 0 / 443.7 MB, free: 5.691 MB / 318.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.004106/0.08691, allocations: 1.514 MB / 445.2 MB, free: 4.125 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.08695, allocations: 12.03 kB / 445.2 MB, free: 4.113 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/0.08707, allocations: 76 kB / 445.3 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002206/0.08928, allocations: 0.8863 MB / 446.2 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.08932, allocations: 24.94 kB / 446.2 MB, free: 3.086 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.46e-05/0.08939, allocations: 32.28 kB / 446.2 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005774/0.08997, allocations: 376.6 kB / 446.6 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.09, allocations: 7.938 kB / 446.6 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.186e-05/0.09003, allocations: 12 kB / 446.6 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.09005, allocations: 8 kB / 446.6 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006977/0.09075, allocations: 461.9 kB / 447.1 MB, free: 2.207 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002014/0.09277, allocations: 1.268 MB / 448.3 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001694/0.09448, allocations: 0.7968 MB / 449.1 MB, free: 76 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003609/0.09485, allocations: 258 kB / 449.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.748e-05/0.0949, allocations: 8.422 kB / 449.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.09493, allocations: 46.94 kB / 449.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 1.734e-06/0.09494, allocations: 0 / 449.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=48): time 0.003053/0.098, allocations: 1.509 MB / 451 MB, free: 14.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/0.09804, allocations: 55.84 kB / 451 MB, free: 14.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002278/0.1003, allocations: 1.035 MB / 452 MB, free: 13.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5e-05/0.1004, allocations: 33.7 kB / 452.1 MB, free: 13 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001825/0.1006, allocations: 293.9 kB / 452.4 MB, free: 12.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/0.1007, allocations: 185.3 kB / 452.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/0.1009, allocations: 86.12 kB / 452.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.839e-05/0.101, allocations: 326 kB / 452.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003227/0.1013, allocations: 216.8 kB / 453.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000312/0.1016, allocations: 224.4 kB / 453.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003902/0.1055, allocations: 1.415 MB / 454.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1055, allocations: 0 / 454.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001471/0.107, allocations: 0.9031 MB / 455.7 MB, free: 9.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.107, allocations: 9.875 kB / 455.7 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.107, allocations: 0 / 455.7 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005849/0.1076, allocations: 219.2 kB / 455.9 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003055/0.1079, allocations: 71.91 kB / 456 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004649/0.1126, allocations: 6.412 MB / 462.4 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/0.1137, allocations: 183.4 kB / 462.6 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.719e-05/0.1137, allocations: 15.94 kB / 462.6 MB, free: 1.859 MB / 334.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.0003125/0.114, allocations: 265.5 kB / 462.9 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.1142, allocations: 67.16 kB / 462.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001707/0.1143, allocations: 99.14 kB / 463 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.1143, allocations: 8 kB / 463 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.1144, allocations: 0 / 463 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.1144, allocations: 3.938 kB / 463 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006535/0.115, allocations: 0.6456 MB / 463.7 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.115, allocations: 0 / 463.7 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003523/0.1154, allocations: 55.91 kB / 463.7 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005403/0.1159, allocations: 219.2 kB / 463.9 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.942e-05/0.116, allocations: 15.98 kB / 464 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004513/0.1205, allocations: 6.423 MB / 470.4 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1205, allocations: 0 / 470.4 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001754/0.1223, allocations: 1.189 MB / 471.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001611/0.1225, allocations: 172.2 kB / 471.7 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.444e-05/0.1226, allocations: 19.98 kB / 471.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001043/0.1236, allocations: 151.8 kB / 471.9 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.797e-05/0.1237, allocations: 48.31 kB / 472 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.938e-05/0.1237, allocations: 12 kB / 472 MB, free: 7.809 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002131/0.1259, allocations: 0.8188 MB / 472.8 MB, free: 6.988 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1259, allocations: 0 / 472.8 MB, free: 6.988 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004968/0.1264, allocations: 140 kB / 472.9 MB, free: 6.852 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.0001444/0.1265, allocations: 127.2 kB / 473 MB, free: 6.715 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001556/0.1281, allocations: 1.141 MB / 474.2 MB, free: 5.523 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1281, allocations: 0 / 474.2 MB, free: 5.523 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009019/0.129, allocations: 0.7666 MB / 475 MB, free: 4.703 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006267/0.1297, allocations: 131.3 kB / 475.1 MB, free: 4.582 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002331/0.132, allocations: 1.771 MB / 476.9 MB, free: 2.773 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004948/0.1325, allocations: 0.9804 MB / 477.8 MB, free: 1.762 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001621/0.1327, allocations: 43.44 kB / 477.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1327, allocations: 0 / 477.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of Templates: time 0.0173/0.15, allocations: 17.08 MB / 495 MB, free: 0.6367 MB / 366.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)