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_002.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_002,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002",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.1017/0.1017, 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.001004/0.001004, allocations: 189.5 kB / 42.83 MB, free: 3.781 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.342/1.342, allocations: 223.2 MB / 272.1 MB, free: 1.465 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.0009003/0.0009004, allocations: 95.11 kB / 328.7 MB, free: 11.76 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003975/0.0003975, allocations: 15.98 kB / 397.1 MB, free: 46.4 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09087/0.0913, allocations: 55.81 MB / 452.9 MB, free: 6.562 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3214/0.4128, allocations: 82.54 MB / 0.5229 GB, free: 13.35 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.413, allocations: 80.36 kB / 0.523 GB, free: 13.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02793/0.441, allocations: 11.03 MB / 0.5338 GB, free: 9.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.441, allocations: 7.781 kB / 0.5338 GB, free: 9.766 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.365e-05/0.4411, allocations: 14.62 kB / 0.5338 GB, free: 9.766 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: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.002323/0.4434, allocations: 0.9144 MB / 0.5347 GB, free: 9.105 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.4435, allocations: 11.53 kB / 0.5347 GB, free: 9.105 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000159/0.4436, allocations: 92.61 kB / 0.5348 GB, free: 9.055 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.4438, allocations: 73.12 kB / 0.5349 GB, free: 9.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006238/0.4444, allocations: 450.1 kB / 0.5353 GB, free: 8.703 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.1e-05/0.4445, allocations: 42.12 kB / 0.5353 GB, free: 8.699 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.4446, allocations: 66.97 kB / 0.5354 GB, free: 8.691 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.4458, allocations: 0.7716 MB / 0.5361 GB, free: 8.449 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.4458, allocations: 0 / 0.5361 GB, free: 8.449 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.261e-05/0.4459, allocations: 19.53 kB / 0.5362 GB, free: 8.449 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.4459, allocations: 11.53 kB / 0.5362 GB, free: 8.449 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.4471, allocations: 0.8468 MB / 0.537 GB, free: 8.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003795/0.4509, allocations: 2.045 MB / 0.539 GB, free: 7.406 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000904/0.4518, allocations: 0.6792 MB / 0.5397 GB, free: 7.297 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.788e-05/0.4519, allocations: 26.45 kB / 0.5397 GB, free: 7.289 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/0.4519, allocations: 42.69 kB / 0.5397 GB, free: 7.25 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008553/0.4528, allocations: 200.5 kB / 0.5399 GB, free: 7.191 MB / 362.7 MB Notification: Performance of pre-optimization done (n=68): time 3.447e-06/0.4528, allocations: 0 / 0.5399 GB, free: 7.191 MB / 362.7 MB Notification: Performance of matching and sorting (n=68): time 0.008737/0.4615, allocations: 2.371 MB / 0.5422 GB, free: 6.199 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.822e-05/0.4616, allocations: 59.44 kB / 0.5423 GB, free: 6.137 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003713/0.462, allocations: 387.7 kB / 0.5427 GB, free: 5.977 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.244e-05/0.4621, allocations: 40.59 kB / 0.5427 GB, free: 5.945 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.4622, allocations: 272.7 kB / 0.543 GB, free: 5.773 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001495/0.4623, allocations: 249.2 kB / 0.5432 GB, free: 5.594 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.524e-05/0.4624, allocations: 17.31 kB / 0.5432 GB, free: 5.594 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.647e-05/0.4625, allocations: 365.2 kB / 0.5436 GB, free: 5.262 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005682/0.4631, allocations: 368.6 kB / 0.5439 GB, free: 5.211 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006087/0.4637, allocations: 498.8 kB / 0.5444 GB, free: 5.023 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006338/0.4643, allocations: 440.7 kB / 0.5448 GB, free: 4.973 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.4643, allocations: 0 / 0.5448 GB, free: 4.973 MB / 362.7 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.00546/0.4698, allocations: 1.658 MB / 0.5464 GB, free: 4.453 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002141/0.47, allocations: 1.229 MB / 0.5476 GB, free: 3.168 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.47, allocations: 3.844 kB / 0.5476 GB, free: 3.168 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004266/0.4743, allocations: 0.7048 MB / 0.5483 GB, free: 2.891 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001489/0.4758, allocations: 319.6 kB / 0.5486 GB, free: 2.816 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005102/0.4809, allocations: 3.957 MB / 0.5525 GB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008375/0.4818, allocations: 34.2 kB / 0.5525 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001367/0.4819, allocations: 41.59 kB / 0.5526 GB, free: 15.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.039e-05/0.482, allocations: 8 kB / 0.5526 GB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005479/0.4874, allocations: 1.543 MB / 0.5541 GB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/0.4875, allocations: 4 kB / 0.5541 GB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004018/0.4915, allocations: 0.6761 MB / 0.5547 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/0.493, allocations: 315.1 kB / 0.555 GB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00536/0.4984, allocations: 3.914 MB / 0.5589 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007132/0.4991, allocations: 26.41 kB / 0.5589 GB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.717e-05/0.4992, allocations: 46.52 kB / 0.5589 GB, free: 10.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (80): * Single equations (assignments): 77 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 8} * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004208/0.4996, allocations: 277.8 kB / 0.5592 GB, free: 9.828 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001598/0.4998, allocations: 59.3 kB / 0.5593 GB, free: 9.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003468/0.5033, allocations: 1.356 MB / 0.5606 GB, free: 8.785 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.317e-06/0.5033, allocations: 8 kB / 0.5606 GB, free: 8.777 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.5033, allocations: 0 / 0.5606 GB, free: 8.777 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.5033, allocations: 11.94 kB / 0.5606 GB, free: 8.766 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001044/0.5044, allocations: 0.7718 MB / 0.5614 GB, free: 8.164 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.5044, allocations: 0 / 0.5614 GB, free: 8.164 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00166/0.5061, allocations: 318.1 kB / 0.5617 GB, free: 7.859 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001859/0.5079, allocations: 400.4 kB / 0.562 GB, free: 7.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.823e-05/0.508, allocations: 30.25 kB / 0.5621 GB, free: 7.484 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003405/0.5114, allocations: 3.198 MB / 0.5652 GB, free: 4.438 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.5115, allocations: 0 / 0.5652 GB, free: 4.438 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003533/0.515, allocations: 1.651 MB / 0.5668 GB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001953/0.5152, allocations: 135.8 kB / 0.5669 GB, free: 3.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.5153, allocations: 30.61 kB / 0.567 GB, free: 3.074 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005138/0.5158, allocations: 26.86 kB / 0.567 GB, free: 3.059 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.516, allocations: 64.14 kB / 0.567 GB, free: 3.004 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.678e-05/0.5161, allocations: 27.05 kB / 0.5671 GB, free: 2.984 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003375/0.5164, allocations: 300.7 kB / 0.5674 GB, free: 2.754 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5164, allocations: 0 / 0.5674 GB, free: 2.754 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001334/0.5177, allocations: 402.3 kB / 0.5677 GB, free: 2.402 MB / 378.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 (71): * Single equations (assignments): 68 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 8} * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003559/0.5213, allocations: 2.183 MB / 0.5699 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004304/0.5256, allocations: 1.919 MB / 0.5717 GB, free: 14.85 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.5257, allocations: 0.6875 kB / 0.5717 GB, free: 14.85 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.5269, allocations: 0.6758 MB / 0.5724 GB, free: 14.17 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004935/0.5274, allocations: 117.8 kB / 0.5725 GB, free: 14.05 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004915/0.5323, allocations: 4.932 MB / 0.5773 GB, free: 9.016 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/0.5328, allocations: 0.9482 MB / 0.5783 GB, free: 8.043 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007374/0.5336, allocations: 221 kB / 0.5785 GB, free: 7.824 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004516/0.534, allocations: 247.3 kB / 0.5787 GB, free: 7.586 MB / 394.7 MB Notification: Performance of SimCode: time 5.51e-07/0.534, allocations: 0 / 0.5787 GB, free: 7.586 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03497/0.569, allocations: 18.7 MB / 0.597 GB, free: 5.238 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002105/0.5693, allocations: 260.7 kB / 0.5972 GB, free: 4.898 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.557/3.126, allocations: 6.469 kB / 0.5972 GB, free: 4.898 MB / 410.7 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.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_002_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Flow_pressure_control_liquids_Valve_linearisation_case_002.fmu > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe 2>&1)