Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.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.Flow_pressure_control_liquids.Valve_linearisation_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_001",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.1669/0.1669, allocations: 21.62 MB / 36.57 MB, free: 1.109 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.001729/0.001729, allocations: 178.4 kB / 42.83 MB, free: 3.789 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.392/1.392, allocations: 223.2 MB / 272.1 MB, free: 1.816 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.001039/0.001039, allocations: 106.9 kB / 328.7 MB, free: 12.14 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003309/0.000331, allocations: 8 kB / 397.1 MB, free: 46.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09574/0.09609, allocations: 55.82 MB / 452.9 MB, free: 6.59 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3212/0.4174, allocations: 82.1 MB / 0.5225 GB, free: 13 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001735/0.4176, allocations: 83.94 kB / 0.5226 GB, free: 13 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02319/0.4408, allocations: 9.29 MB / 0.5317 GB, free: 10.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.4408, allocations: 4 kB / 0.5317 GB, free: 10.17 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.309e-05/0.4408, allocations: 11.25 kB / 0.5317 GB, free: 10.17 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001687/0.4425, allocations: 0.8162 MB / 0.5325 GB, free: 9.562 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.4426, allocations: 7.688 kB / 0.5325 GB, free: 9.562 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001194/0.4427, allocations: 80.61 kB / 0.5325 GB, free: 9.512 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.4428, allocations: 54.19 kB / 0.5326 GB, free: 9.484 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005887/0.4434, allocations: 390.8 kB / 0.533 GB, free: 9.195 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.704e-05/0.4435, allocations: 31.81 kB / 0.533 GB, free: 9.188 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.642e-05/0.4435, allocations: 50.06 kB / 0.533 GB, free: 9.184 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008442/0.4444, allocations: 0.5572 MB / 0.5336 GB, free: 9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.4444, allocations: 4 kB / 0.5336 GB, free: 8.996 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.374e-05/0.4445, allocations: 22.86 kB / 0.5336 GB, free: 8.992 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.4445, allocations: 11.53 kB / 0.5336 GB, free: 8.992 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008931/0.4454, allocations: 0.5534 MB / 0.5342 GB, free: 8.902 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002876/0.4483, allocations: 1.544 MB / 0.5357 GB, free: 8.184 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007398/0.449, allocations: 0.5028 MB / 0.5362 GB, free: 8.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.412e-05/0.4491, allocations: 6.938 kB / 0.5362 GB, free: 8.09 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.665e-05/0.4491, allocations: 42.92 kB / 0.5362 GB, free: 8.047 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003377/0.4495, allocations: 79.09 kB / 0.5363 GB, free: 8.016 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 3.006e-06/0.4495, allocations: 0 / 0.5363 GB, free: 8.016 MB / 362.7 MB Notification: Performance of matching and sorting (n=48): time 0.001271/0.4507, allocations: 0.7788 MB / 0.5371 GB, free: 7.852 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.724e-05/0.4508, allocations: 59.56 kB / 0.5371 GB, free: 7.789 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000326/0.4511, allocations: 342.4 kB / 0.5374 GB, free: 7.641 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.321e-05/0.4512, allocations: 31.64 kB / 0.5375 GB, free: 7.609 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.4513, allocations: 244.1 kB / 0.5377 GB, free: 7.445 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.4514, allocations: 183.6 kB / 0.5379 GB, free: 7.316 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.696e-05/0.4514, allocations: 10.94 kB / 0.5379 GB, free: 7.316 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.237e-05/0.4515, allocations: 365.2 kB / 0.5382 GB, free: 6.984 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004116/0.4519, allocations: 258.4 kB / 0.5385 GB, free: 6.949 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004511/0.4524, allocations: 373.6 kB / 0.5388 GB, free: 6.789 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004951/0.4529, allocations: 317.7 kB / 0.5391 GB, free: 6.746 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.533e-06/0.4529, allocations: 0 / 0.5391 GB, free: 6.746 MB / 362.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.002263/0.4552, allocations: 0.8873 MB / 0.54 GB, free: 6.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000328/0.4555, allocations: 1.137 MB / 0.5411 GB, free: 5.328 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.4556, allocations: 4 kB / 0.5411 GB, free: 5.324 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001414/0.457, allocations: 204.2 kB / 0.5413 GB, free: 5.246 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/0.4584, allocations: 304.9 kB / 0.5416 GB, free: 5.172 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006433/0.459, allocations: 1.169 MB / 0.5427 GB, free: 4.102 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005578/0.4596, allocations: 36.59 kB / 0.5428 GB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.706e-05/0.4597, allocations: 26.52 kB / 0.5428 GB, free: 4.086 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.087e-06/0.4597, allocations: 3.844 kB / 0.5428 GB, free: 4.086 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001679/0.4614, allocations: 0.7946 MB / 0.5436 GB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.4614, allocations: 3.812 kB / 0.5436 GB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001016/0.4624, allocations: 174.2 kB / 0.5438 GB, free: 3.848 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/0.4637, allocations: 299.5 kB / 0.544 GB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005253/0.4643, allocations: 1.15 MB / 0.5452 GB, free: 2.711 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004984/0.4648, allocations: 34.25 kB / 0.5452 GB, free: 2.699 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.279e-05/0.4648, allocations: 26.58 kB / 0.5452 GB, free: 2.695 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (74): * Single equations (assignments): 72 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000329/0.4652, allocations: 258.3 kB / 0.5455 GB, free: 2.492 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001228/0.4653, allocations: 42.88 kB / 0.5455 GB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001378/0.4667, allocations: 0.7318 MB / 0.5462 GB, free: 2.277 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.4667, allocations: 7.719 kB / 0.5462 GB, free: 2.277 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.4667, allocations: 0 / 0.5462 GB, free: 2.277 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.4667, allocations: 3.984 kB / 0.5462 GB, free: 2.273 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008819/0.4676, allocations: 0.6181 MB / 0.5468 GB, free: 1.938 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/0.4677, allocations: 4 kB / 0.5468 GB, free: 1.934 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002136/0.4698, allocations: 382.5 kB / 0.5472 GB, free: 1.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-05/0.4698, allocations: 3.844 kB / 0.5472 GB, free: 1.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-05/0.4699, allocations: 18.55 kB / 0.5472 GB, free: 1.836 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003763/0.4703, allocations: 1.166 MB / 0.5484 GB, free: 0.6562 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.4703, allocations: 7.938 kB / 0.5484 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.4717, allocations: 0.9478 MB / 0.5493 GB, free: 396 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.4718, allocations: 123.5 kB / 0.5494 GB, free: 268 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.925e-05/0.4719, allocations: 21.27 kB / 0.5494 GB, free: 264 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003957/0.4723, allocations: 24.27 kB / 0.5495 GB, free: 256 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.4724, allocations: 47.25 kB / 0.5495 GB, free: 232 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.093e-05/0.4725, allocations: 19.05 kB / 0.5495 GB, free: 228 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002443/0.4727, allocations: 265.6 kB / 0.5498 GB, free: 120 kB / 362.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4727, allocations: 0 / 0.5498 GB, free: 120 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007856/0.4735, allocations: 288.3 kB / 0.5501 GB, free: 88 kB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (streamNL.w,streamNL.T[1],streamNL.T[2],streamNL.T[3],streamNL.T[4],streamNL.T[5],streamLIN.w,streamLIN.T[1],streamLIN.T[2],streamLIN.T[3],streamLIN.T[4],streamLIN.T[5]) * 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 (64): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001657/0.4752, allocations: 1.514 MB / 0.5515 GB, free: 15.28 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002076/0.4773, allocations: 1.043 MB / 0.5526 GB, free: 15.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4773, allocations: 0 / 0.5526 GB, free: 15.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008416/0.4781, allocations: 369.5 kB / 0.5529 GB, free: 15.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004237/0.4786, allocations: 105.7 kB / 0.553 GB, free: 14.99 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00454/0.4831, allocations: 4.41 MB / 0.5573 GB, free: 10.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004475/0.4836, allocations: 0.883 MB / 0.5582 GB, free: 9.809 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007053/0.4843, allocations: 208.3 kB / 0.5584 GB, free: 9.602 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003135/0.4846, allocations: 198.9 kB / 0.5586 GB, free: 9.535 MB / 378.7 MB Notification: Performance of SimCode: time 6.81e-07/0.4846, allocations: 0 / 0.5586 GB, free: 9.535 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03113/0.5158, allocations: 12.58 MB / 0.5709 GB, free: 13.29 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002342/0.516, allocations: 261.2 kB / 0.5711 GB, free: 12.95 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.236/2.752, allocations: 3.094 kB / 0.5711 GB, free: 12.95 MB / 394.7 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_001_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_001.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe 2>&1)