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/AES main/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09566/0.09566, allocations: 21.61 MB / 36.56 MB, free: 1.062 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009448/0.0009448, allocations: 190.5 kB / 42.83 MB, free: 3.785 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.225/1.225, allocations: 223.2 MB / 272.1 MB, free: 1.426 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008655/0.0008654, allocations: 93.42 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003395/0.0003394, allocations: 8 kB / 397 MB, free: 46.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07738/0.07774, allocations: 55.82 MB / 452.9 MB, free: 6.645 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2658/0.3436, allocations: 80.01 MB / 0.5204 GB, free: 13.15 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001909/0.3438, allocations: 78.45 kB / 0.5205 GB, free: 13.15 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03435/0.3782, allocations: 11.25 MB / 0.5315 GB, free: 9.914 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3782, allocations: 0 / 0.5315 GB, free: 9.914 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.745e-05/0.3782, allocations: 27.25 kB / 0.5315 GB, free: 9.902 MB / 362.7 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.002995/0.3813, allocations: 1.301 MB / 0.5328 GB, free: 9.039 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.3813, allocations: 7.844 kB / 0.5328 GB, free: 9.039 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001504/0.3815, allocations: 73.66 kB / 0.5328 GB, free: 9 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002353/0.3838, allocations: 0.9268 MB / 0.5337 GB, free: 8.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.3839, allocations: 22.09 kB / 0.5338 GB, free: 8.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.383e-05/0.3839, allocations: 28.34 kB / 0.5338 GB, free: 8.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005274/0.3845, allocations: 368.4 kB / 0.5341 GB, free: 8.359 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.3845, allocations: 4 kB / 0.5341 GB, free: 8.355 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.3845, allocations: 15.36 kB / 0.5342 GB, free: 8.352 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.3845, allocations: 8.531 kB / 0.5342 GB, free: 8.352 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006183/0.3852, allocations: 467.2 kB / 0.5346 GB, free: 8.258 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0018/0.387, allocations: 1.212 MB / 0.5358 GB, free: 7.684 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001582/0.3886, allocations: 0.7957 MB / 0.5366 GB, free: 7.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.002e-05/0.3886, allocations: 8.297 kB / 0.5366 GB, free: 7.496 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.579e-05/0.3886, allocations: 38.19 kB / 0.5366 GB, free: 7.453 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 2.104e-06/0.3886, allocations: 0 / 0.5366 GB, free: 7.453 MB / 362.7 MB Notification: Performance of matching and sorting (n=48): time 0.002707/0.3913, allocations: 1.504 MB / 0.5381 GB, free: 6.691 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.403e-05/0.3914, allocations: 59.53 kB / 0.5381 GB, free: 6.629 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002092/0.3935, allocations: 0.9711 MB / 0.5391 GB, free: 6.281 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.809e-05/0.3935, allocations: 29.2 kB / 0.5391 GB, free: 6.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.3937, allocations: 305.8 kB / 0.5394 GB, free: 6.121 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.3938, allocations: 175.7 kB / 0.5396 GB, free: 5.996 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.214e-05/0.3938, allocations: 6.625 kB / 0.5396 GB, free: 5.996 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.795e-05/0.3939, allocations: 328.2 kB / 0.5399 GB, free: 5.688 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000283/0.3942, allocations: 222.1 kB / 0.5401 GB, free: 5.645 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002693/0.3944, allocations: 218.8 kB / 0.5403 GB, free: 5.609 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003556/0.3948, allocations: 271.2 kB / 0.5406 GB, free: 5.555 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3948, allocations: 0 / 0.5406 GB, free: 5.555 MB / 362.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001296/0.3961, allocations: 0.8952 MB / 0.5414 GB, free: 5.281 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.3961, allocations: 5.812 kB / 0.5415 GB, free: 5.281 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.3962, allocations: 0 / 0.5415 GB, free: 5.281 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005812/0.3967, allocations: 225.5 kB / 0.5417 GB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002962/0.397, allocations: 76.19 kB / 0.5417 GB, free: 5.172 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003435/0.4005, allocations: 6.047 MB / 0.5476 GB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/0.4016, allocations: 190.9 kB / 0.5478 GB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.684e-05/0.4017, allocations: 14.94 kB / 0.5478 GB, free: 15.68 MB / 378.7 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] 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] C1.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] 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.0004011/0.4021, allocations: 261.8 kB / 0.5481 GB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.4022, allocations: 73.53 kB / 0.5482 GB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001719/0.4024, allocations: 102.7 kB / 0.5483 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.4024, allocations: 7.828 kB / 0.5483 GB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.428e-05/0.4024, allocations: 3.875 kB / 0.5483 GB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.4024, allocations: 0 / 0.5483 GB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006637/0.4031, allocations: 0.6307 MB / 0.5489 GB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4031, allocations: 0 / 0.5489 GB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000358/0.4035, allocations: 57.84 kB / 0.5489 GB, free: 15.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005286/0.404, allocations: 214.9 kB / 0.5491 GB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.547e-05/0.4041, allocations: 21.61 kB / 0.5492 GB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004334/0.4084, allocations: 6.046 MB / 0.5551 GB, free: 9.586 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.4084, allocations: 480 / 0.5551 GB, free: 9.586 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001742/0.4102, allocations: 1.181 MB / 0.5562 GB, free: 9.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002577/0.4105, allocations: 169.5 kB / 0.5564 GB, free: 9.035 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.447e-05/0.4106, allocations: 22.42 kB / 0.5564 GB, free: 9.031 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.4116, allocations: 160.7 kB / 0.5566 GB, free: 8.965 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.826e-05/0.4117, allocations: 42.38 kB / 0.5566 GB, free: 8.945 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.918e-05/0.4117, allocations: 11.75 kB / 0.5566 GB, free: 8.945 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002007/0.4137, allocations: 0.8319 MB / 0.5574 GB, free: 8.637 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4137, allocations: 4 kB / 0.5574 GB, free: 8.633 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005718/0.4143, allocations: 152.2 kB / 0.5576 GB, free: 8.57 MB / 378.7 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.0001651/0.4145, allocations: 127.1 kB / 0.5577 GB, free: 8.441 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001437/0.4159, allocations: 1.066 MB / 0.5587 GB, free: 7.496 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4159, allocations: 0 / 0.5587 GB, free: 7.496 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008697/0.4168, allocations: 0.776 MB / 0.5595 GB, free: 6.762 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004847/0.4173, allocations: 120.6 kB / 0.5596 GB, free: 6.688 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002158/0.4195, allocations: 1.634 MB / 0.5612 GB, free: 5.148 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004875/0.42, allocations: 0.9936 MB / 0.5622 GB, free: 4.145 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003455/0.4203, allocations: 156.7 kB / 0.5623 GB, free: 3.988 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.4205, allocations: 43.44 kB / 0.5624 GB, free: 3.949 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4205, allocations: 0 / 0.5624 GB, free: 3.949 MB / 378.7 MB Notification: Performance of Templates: time 0.01202/0.4325, allocations: 7.785 MB / 0.57 GB, free: 12.23 MB / 394.7 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)