Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.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.ElecSys_generator_models.SlidingPressure,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_SlidingPressure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_generator_models.SlidingPressure,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_SlidingPressure",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.1334/0.1334, allocations: 21.62 MB / 36.56 MB, free: 1.094 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.001746/0.001746, allocations: 190.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.621/1.621, allocations: 223.2 MB / 272.1 MB, free: 1.418 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.001056/0.001056, allocations: 115.7 kB / 328.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004055/0.0004054, allocations: 4 kB / 397.1 MB, free: 46.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1172, allocations: 55.83 MB / 452.9 MB, free: 6.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3215/0.4388, allocations: 82.29 MB / 0.5227 GB, free: 13.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002215/0.4391, allocations: 80.47 kB / 0.5228 GB, free: 13.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01219/0.4513, allocations: 5.24 MB / 0.5279 GB, free: 11.94 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4513, allocations: 0 / 0.5279 GB, free: 11.94 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.675e-05/0.4513, allocations: 7.5 kB / 0.5279 GB, free: 11.94 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0007675/0.4521, allocations: 0.574 MB / 0.5284 GB, free: 11.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.503e-05/0.4522, allocations: 7.656 kB / 0.5285 GB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.01e-05/0.4523, allocations: 59.91 kB / 0.5285 GB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.719e-05/0.4524, allocations: 31 kB / 0.5285 GB, free: 11.37 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004017/0.4528, allocations: 301 kB / 0.5288 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.815e-05/0.4528, allocations: 19.06 kB / 0.5288 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.988e-05/0.4529, allocations: 28.67 kB / 0.5289 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004279/0.4533, allocations: 256.2 kB / 0.5291 GB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.4533, allocations: 0 / 0.5291 GB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.542e-05/0.4534, allocations: 14.09 kB / 0.5291 GB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.4534, allocations: 5.188 kB / 0.5291 GB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003714/0.4537, allocations: 169.2 kB / 0.5293 GB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.4553, allocations: 1.046 MB / 0.5303 GB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004019/0.4557, allocations: 210.7 kB / 0.5305 GB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.4557, allocations: 3.844 kB / 0.5305 GB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.899e-05/0.4557, allocations: 31.22 kB / 0.5306 GB, free: 10.08 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.453e-06/0.4558, allocations: 0 / 0.5306 GB, free: 10.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005215/0.4563, allocations: 274 kB / 0.5308 GB, free: 10 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.4563, allocations: 86 kB / 0.5309 GB, free: 9.902 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001807/0.4565, allocations: 235.3 kB / 0.5311 GB, free: 9.773 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.4565, allocations: 33.36 kB / 0.5311 GB, free: 9.742 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.539e-05/0.4566, allocations: 185.5 kB / 0.5313 GB, free: 9.617 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.68e-05/0.4567, allocations: 69.06 kB / 0.5314 GB, free: 9.566 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.796e-06/0.4567, allocations: 3.938 kB / 0.5314 GB, free: 9.566 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.906e-05/0.4567, allocations: 336.2 kB / 0.5317 GB, free: 9.246 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001341/0.4569, allocations: 66.28 kB / 0.5318 GB, free: 9.238 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.457, allocations: 128.2 kB / 0.5319 GB, free: 9.164 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.4572, allocations: 83.83 kB / 0.532 GB, free: 9.152 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.4572, allocations: 448 / 0.532 GB, free: 9.152 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003996/0.4576, allocations: 256.4 kB / 0.5322 GB, free: 9.078 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001345/0.4578, allocations: 0.538 MB / 0.5328 GB, free: 8.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.4578, allocations: 0 / 0.5328 GB, free: 8.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/0.4578, allocations: 7.531 kB / 0.5328 GB, free: 8.516 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001918/0.458, allocations: 42.14 kB / 0.5328 GB, free: 8.508 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.458, allocations: 3.812 kB / 0.5328 GB, free: 8.508 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.4582, allocations: 26.92 kB / 0.5328 GB, free: 8.496 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.543e-05/0.4582, allocations: 6.469 kB / 0.5328 GB, free: 8.496 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.496e-06/0.4582, allocations: 7.844 kB / 0.5328 GB, free: 8.492 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000246/0.4585, allocations: 169 kB / 0.533 GB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.096e-06/0.4585, allocations: 0 / 0.533 GB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.02e-06/0.4585, allocations: 3.719 kB / 0.533 GB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/0.4586, allocations: 42.08 kB / 0.533 GB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.186e-06/0.4586, allocations: 3.906 kB / 0.5331 GB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.4587, allocations: 15 kB / 0.5331 GB, free: 8.453 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.4588, allocations: 11.81 kB / 0.5331 GB, free: 8.449 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: T.y:VARIABLE(start = T.y_start fixed = true ) "Connector of Real output signal" type: Real F.y:VARIABLE(start = F.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 2 (PIp.I.local_reset,S.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002316/0.459, allocations: 235.1 kB / 0.5333 GB, free: 8.242 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.478e-05/0.4591, allocations: 27.31 kB / 0.5333 GB, free: 8.227 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.36e-05/0.4591, allocations: 33.41 kB / 0.5334 GB, free: 8.211 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.4591, allocations: 3.844 kB / 0.5334 GB, free: 8.211 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4591, allocations: 0 / 0.5334 GB, free: 8.211 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.4591, allocations: 0 / 0.5334 GB, free: 8.211 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003752/0.4595, allocations: 344.8 kB / 0.5337 GB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.4595, allocations: 0 / 0.5337 GB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001851/0.4597, allocations: 34.52 kB / 0.5337 GB, free: 7.957 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.4597, allocations: 0 / 0.5337 GB, free: 7.957 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.4598, allocations: 3.938 kB / 0.5337 GB, free: 7.957 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.4598, allocations: 3.938 kB / 0.5337 GB, free: 7.953 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.4598, allocations: 0 / 0.5337 GB, free: 7.953 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005201/0.4603, allocations: 399.5 kB / 0.5341 GB, free: 7.773 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.264e-05/0.4604, allocations: 122.8 kB / 0.5342 GB, free: 7.652 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.335e-05/0.4604, allocations: 3.844 kB / 0.5342 GB, free: 7.652 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.4606, allocations: 15.17 kB / 0.5342 GB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.677e-05/0.4606, allocations: 15.52 kB / 0.5343 GB, free: 7.641 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.849e-06/0.4607, allocations: 3.844 kB / 0.5343 GB, free: 7.641 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001446/0.4608, allocations: 192.7 kB / 0.5345 GB, free: 7.539 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4608, allocations: 0 / 0.5345 GB, free: 7.539 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003692/0.4612, allocations: 90.88 kB / 0.5345 GB, free: 7.523 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (F.y,S.y,T.y,PIp.I.y) * 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 (17): * Single equations (assignments): 17 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000668/0.4619, allocations: 0.9359 MB / 0.5355 GB, free: 6.801 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004547/0.4623, allocations: 271.8 kB / 0.5357 GB, free: 6.762 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.4623, allocations: 0 / 0.5357 GB, free: 6.762 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.4625, allocations: 82.22 kB / 0.5358 GB, free: 6.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003733/0.4629, allocations: 65.84 kB / 0.5359 GB, free: 6.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002074/0.4649, allocations: 2.361 MB / 0.5382 GB, free: 5.121 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001591/0.4651, allocations: 0.769 MB / 0.5389 GB, free: 4.383 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001306/0.4653, allocations: 33.52 kB / 0.5389 GB, free: 4.363 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.4654, allocations: 87.81 kB / 0.539 GB, free: 4.348 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4654, allocations: 3.938 kB / 0.539 GB, free: 4.344 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01601/0.4814, allocations: 5.078 MB / 0.544 GB, free: 1.992 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001563/0.4816, allocations: 169.5 kB / 0.5441 GB, free: 1.754 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.865/2.346, allocations: 0 / 0.5441 GB, free: 1.754 MB / 362.7 MB (rm -f AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe ; mkfifo AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe >> ../files/AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_generator_models_SlidingPressure_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_generator_models_SlidingPressure.fmu > AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe 2>&1)