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: "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_01_gen",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_01_gen",fmuType="me",version="2.0",platforms={"static"}) [/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.1008/0.1008, allocations: 21.61 MB / 36.56 MB, free: 1.051 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.001051/0.001051, allocations: 190.8 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.33/1.33, 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.001065/0.001065, allocations: 97.58 kB / 328.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003422/0.0003422, allocations: 8 kB / 397.1 MB, free: 46.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1008, allocations: 55.82 MB / 452.9 MB, free: 6.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3721/0.4729, allocations: 80.01 MB / 0.5205 GB, free: 13.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/0.4733, allocations: 84.64 kB / 0.5205 GB, free: 13.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03718/0.5105, allocations: 11.25 MB / 0.5315 GB, free: 9.836 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5105, allocations: 0 / 0.5315 GB, free: 9.836 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.218e-05/0.5106, allocations: 26.84 kB / 0.5316 GB, free: 9.824 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.003285/0.5139, allocations: 1.299 MB / 0.5328 GB, free: 8.961 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.514, allocations: 15.7 kB / 0.5328 GB, free: 8.953 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.31e-05/0.5141, allocations: 61.58 kB / 0.5329 GB, free: 8.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001469/0.5142, allocations: 73.81 kB / 0.533 GB, free: 8.871 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002419/0.5166, allocations: 0.9163 MB / 0.5339 GB, free: 8.359 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.046e-05/0.5167, allocations: 27.69 kB / 0.5339 GB, free: 8.355 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.906e-05/0.5167, allocations: 31.06 kB / 0.5339 GB, free: 8.355 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005157/0.5173, allocations: 366.9 kB / 0.5343 GB, free: 8.234 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.5173, allocations: 3.938 kB / 0.5343 GB, free: 8.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.227e-05/0.5173, allocations: 15.61 kB / 0.5343 GB, free: 8.227 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.5173, allocations: 7.688 kB / 0.5343 GB, free: 8.227 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006476/0.518, allocations: 463.6 kB / 0.5347 GB, free: 8.137 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.5199, allocations: 1.216 MB / 0.5359 GB, free: 7.555 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.5215, allocations: 0.7924 MB / 0.5367 GB, free: 7.375 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.044e-05/0.5216, allocations: 4.312 kB / 0.5367 GB, free: 7.375 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.679e-05/0.5216, allocations: 38.19 kB / 0.5367 GB, free: 7.336 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 2.565e-06/0.5216, allocations: 0 / 0.5367 GB, free: 7.336 MB / 362.7 MB Notification: Performance of matching and sorting (n=48): time 0.002897/0.5245, allocations: 1.501 MB / 0.5382 GB, free: 6.574 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.865e-05/0.5245, allocations: 62.75 kB / 0.5383 GB, free: 6.512 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002153/0.5267, allocations: 0.9716 MB / 0.5392 GB, free: 6.156 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.755e-05/0.5267, allocations: 32.08 kB / 0.5392 GB, free: 6.125 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.5269, allocations: 307 kB / 0.5395 GB, free: 5.996 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001309/0.5271, allocations: 179.8 kB / 0.5397 GB, free: 5.867 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.274e-05/0.5271, allocations: 6.562 kB / 0.5397 GB, free: 5.867 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.583e-05/0.5272, allocations: 323.8 kB / 0.54 GB, free: 5.559 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003061/0.5275, allocations: 222.3 kB / 0.5402 GB, free: 5.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002824/0.5278, allocations: 214.7 kB / 0.5404 GB, free: 5.484 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003271/0.5281, allocations: 271.4 kB / 0.5407 GB, free: 5.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.5281, allocations: 3.953 kB / 0.5407 GB, free: 5.426 MB / 362.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001299/0.5294, allocations: 0.8924 MB / 0.5416 GB, free: 5.156 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.5294, allocations: 7.688 kB / 0.5416 GB, free: 5.156 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.5295, allocations: 0 / 0.5416 GB, free: 5.156 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000606/0.5301, allocations: 227.7 kB / 0.5418 GB, free: 5.059 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002959/0.5304, allocations: 72.44 kB / 0.5419 GB, free: 5.047 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003721/0.5341, allocations: 6.057 MB / 0.5478 GB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.5352, allocations: 183.5 kB / 0.548 GB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.971e-05/0.5353, allocations: 11.34 kB / 0.548 GB, free: 15.55 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.0003412/0.5356, allocations: 259.9 kB / 0.5482 GB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.5357, allocations: 68.97 kB / 0.5483 GB, free: 15.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001838/0.5359, allocations: 105.8 kB / 0.5484 GB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.5359, allocations: 3.969 kB / 0.5484 GB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.536, allocations: 3.875 kB / 0.5484 GB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.536, allocations: 0 / 0.5484 GB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006447/0.5366, allocations: 0.6352 MB / 0.549 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.5366, allocations: 0 / 0.549 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003695/0.537, allocations: 57.31 kB / 0.5491 GB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000576/0.5376, allocations: 217.5 kB / 0.5493 GB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.883e-05/0.5377, allocations: 25.8 kB / 0.5493 GB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004178/0.5418, allocations: 6.041 MB / 0.5552 GB, free: 9.461 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.5419, allocations: 0 / 0.5552 GB, free: 9.461 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001785/0.5437, allocations: 1.182 MB / 0.5564 GB, free: 9.055 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002492/0.5439, allocations: 169.9 kB / 0.5565 GB, free: 8.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.313e-05/0.544, allocations: 20.17 kB / 0.5565 GB, free: 8.906 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.5451, allocations: 166.5 kB / 0.5567 GB, free: 8.836 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.735e-05/0.5452, allocations: 30.77 kB / 0.5567 GB, free: 8.824 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.041e-05/0.5452, allocations: 14.66 kB / 0.5567 GB, free: 8.824 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002167/0.5474, allocations: 0.8367 MB / 0.5576 GB, free: 8.512 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5474, allocations: 3.938 kB / 0.5576 GB, free: 8.508 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005786/0.548, allocations: 153 kB / 0.5577 GB, free: 8.496 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.002171/0.5502, allocations: 1.764 MB / 0.5594 GB, free: 6.996 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00157/0.5518, allocations: 1.065 MB / 0.5605 GB, free: 6.055 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5518, allocations: 0 / 0.5605 GB, free: 6.055 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009747/0.5528, allocations: 0.7656 MB / 0.5612 GB, free: 5.328 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005382/0.5533, allocations: 124.1 kB / 0.5613 GB, free: 5.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/0.5653, allocations: 5.952 MB / 0.5671 GB, free: 104 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006076/0.566, allocations: 0.9958 MB / 0.5681 GB, free: 15.09 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003548/0.5664, allocations: 148.7 kB / 0.5683 GB, free: 14.95 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002972/0.5667, allocations: 239.7 kB / 0.5685 GB, free: 14.89 MB / 394.7 MB Notification: Performance of SimCode: time 8.41e-07/0.5667, allocations: 0 / 0.5685 GB, free: 14.89 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02932/0.596, allocations: 14.53 MB / 0.5827 GB, free: 0.625 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001874/0.5962, allocations: 256.3 kB / 0.5829 GB, free: 300 kB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.227/2.824, allocations: 7.938 kB / 0.5829 GB, free: 292 kB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_01_gen_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Temperature_control_pipes_Tcontrol_pipes_sensor_dynamics_01_gen.fmu > AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_01_gen.pipe 2>&1)