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: translateModel(AES.Coursework.ElecSys_generator_models.SlidingPressure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.SlidingPressure") translateModel(AES.Coursework.ElecSys_generator_models.SlidingPressure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.SlidingPressure") [/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.09487/0.09487, allocations: 21.61 MB / 36.56 MB, free: 1.066 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.0009054/0.0009054, allocations: 183.5 kB / 42.82 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.219/1.219, allocations: 223.2 MB / 272.2 MB, free: 1.383 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.0008855/0.0008855, allocations: 106.8 kB / 328.7 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003145/0.0003145, allocations: 11.98 kB / 397 MB, free: 46.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07698/0.07731, allocations: 55.82 MB / 452.9 MB, free: 6.637 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2687/0.3461, allocations: 82.29 MB / 0.5226 GB, free: 13.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001918/0.3463, allocations: 80.27 kB / 0.5227 GB, free: 13.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01076/0.3571, allocations: 5.239 MB / 0.5278 GB, free: 11.81 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3571, allocations: 0 / 0.5278 GB, free: 11.81 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.741e-05/0.3571, allocations: 3.844 kB / 0.5278 GB, free: 11.81 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.0005178/0.3576, allocations: 0.5734 MB / 0.5284 GB, free: 11.31 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.522e-05/0.3577, allocations: 11.47 kB / 0.5284 GB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.81e-05/0.3577, allocations: 31.16 kB / 0.5284 GB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002802/0.358, allocations: 300.9 kB / 0.5287 GB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.358, allocations: 15.12 kB / 0.5287 GB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.863e-05/0.3581, allocations: 34.5 kB / 0.5287 GB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003523/0.3584, allocations: 254 kB / 0.529 GB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.3584, allocations: 0 / 0.529 GB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.386e-05/0.3585, allocations: 11.03 kB / 0.529 GB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.3585, allocations: 3.844 kB / 0.529 GB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002957/0.3588, allocations: 176.2 kB / 0.5292 GB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001018/0.3598, allocations: 1.039 MB / 0.5302 GB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003597/0.3602, allocations: 217.5 kB / 0.5304 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.3602, allocations: 0 / 0.5304 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.162e-05/0.3602, allocations: 33.94 kB / 0.5304 GB, free: 10 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.102e-06/0.3602, allocations: 3.875 kB / 0.5304 GB, free: 10 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004477/0.3607, allocations: 262.1 kB / 0.5307 GB, free: 9.926 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.558e-05/0.3607, allocations: 88.84 kB / 0.5308 GB, free: 9.824 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001628/0.3609, allocations: 240 kB / 0.531 GB, free: 9.695 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.3609, allocations: 30.67 kB / 0.531 GB, free: 9.664 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.575e-05/0.361, allocations: 185.5 kB / 0.5312 GB, free: 9.543 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.024e-05/0.361, allocations: 61.3 kB / 0.5313 GB, free: 9.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.576e-06/0.361, allocations: 3.5 kB / 0.5313 GB, free: 9.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.597e-05/0.3611, allocations: 339.7 kB / 0.5316 GB, free: 9.176 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.3612, allocations: 73.36 kB / 0.5316 GB, free: 9.164 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.3613, allocations: 120.7 kB / 0.5318 GB, free: 9.094 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/0.3615, allocations: 78.03 kB / 0.5318 GB, free: 9.086 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3615, allocations: 0 / 0.5318 GB, free: 9.086 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003497/0.3619, allocations: 262.2 kB / 0.5321 GB, free: 9.008 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.916e-05/0.362, allocations: 0.5285 MB / 0.5326 GB, free: 8.457 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.362, allocations: 7.953 kB / 0.5326 GB, free: 8.449 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.362, allocations: 7.844 kB / 0.5326 GB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.3622, allocations: 46.5 kB / 0.5327 GB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.433e-06/0.3622, allocations: 7.875 kB / 0.5327 GB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001217/0.3623, allocations: 27.14 kB / 0.5327 GB, free: 8.418 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/0.3623, allocations: 7.688 kB / 0.5327 GB, free: 8.418 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.51e-06/0.3623, allocations: 3.812 kB / 0.5327 GB, free: 8.418 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002425/0.3626, allocations: 167.9 kB / 0.5329 GB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.234e-06/0.3626, allocations: 2.625 kB / 0.5329 GB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.707e-06/0.3626, allocations: 2.625 kB / 0.5329 GB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.3628, allocations: 44.03 kB / 0.5329 GB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.585e-06/0.3628, allocations: 3.844 kB / 0.5329 GB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.558e-05/0.3629, allocations: 15.56 kB / 0.5329 GB, free: 8.375 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.3629, allocations: 11.59 kB / 0.5329 GB, free: 8.375 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.0001699/0.3631, allocations: 231.9 kB / 0.5332 GB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.191e-05/0.3631, allocations: 27.16 kB / 0.5332 GB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.979e-05/0.3632, allocations: 32.81 kB / 0.5332 GB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.3632, allocations: 3.938 kB / 0.5332 GB, free: 8.129 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3632, allocations: 3.844 kB / 0.5332 GB, free: 8.129 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.3632, allocations: 3.984 kB / 0.5332 GB, free: 8.125 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003553/0.3636, allocations: 339.4 kB / 0.5336 GB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3636, allocations: 0 / 0.5336 GB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.3638, allocations: 38.94 kB / 0.5336 GB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3638, allocations: 0 / 0.5336 GB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.3638, allocations: 7.719 kB / 0.5336 GB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3638, allocations: 0 / 0.5336 GB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.3638, allocations: 0 / 0.5336 GB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004495/0.3642, allocations: 401 kB / 0.534 GB, free: 7.688 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.43e-05/0.3643, allocations: 123.3 kB / 0.5341 GB, free: 7.566 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.952e-05/0.3644, allocations: 4 kB / 0.5341 GB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.3645, allocations: 11.38 kB / 0.5341 GB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.368e-05/0.3646, allocations: 7.859 kB / 0.5341 GB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.3646, allocations: 7.75 kB / 0.5341 GB, free: 7.555 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001158/0.3647, allocations: 197.8 kB / 0.5343 GB, free: 7.453 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3647, allocations: 0 / 0.5343 GB, free: 7.453 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000337/0.365, allocations: 89.09 kB / 0.5344 GB, free: 7.438 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 8.13e-05/0.3651, allocations: 106.4 kB / 0.5345 GB, free: 7.344 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004061/0.3655, allocations: 272.3 kB / 0.5348 GB, free: 7.305 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3655, allocations: 3.938 kB / 0.5348 GB, free: 7.301 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.3657, allocations: 81.09 kB / 0.5348 GB, free: 7.293 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/0.366, allocations: 76.33 kB / 0.5349 GB, free: 7.266 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008584/0.3669, allocations: 0.6001 MB / 0.5355 GB, free: 6.859 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001773/0.3671, allocations: 0.7769 MB / 0.5363 GB, free: 6.117 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001496/0.3672, allocations: 25.91 kB / 0.5363 GB, free: 6.105 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.289e-05/0.3673, allocations: 22.44 kB / 0.5363 GB, free: 6.098 MB / 362.7 MB Notification: Performance of SimCode: time 3.61e-07/0.3673, allocations: 0 / 0.5363 GB, free: 6.098 MB / 362.7 MB Notification: Performance of Templates: time 0.004845/0.3722, allocations: 2.401 MB / 0.5387 GB, free: 4.945 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.makefile (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 & ./AES_AES.Coursework.ElecSys_generator_models.SlidingPressure -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe 2>&1)