Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_below_limit.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.Typical_control_structures.Keep_below_limit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_below_limit") translateModel(AES.Coursework.Typical_control_structures.Keep_below_limit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_below_limit") [/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.1303/0.1303, 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.0009317/0.0009317, allocations: 178.4 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.217/1.217, allocations: 223.2 MB / 272.1 MB, free: 1.398 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.0008585/0.0008585, allocations: 104.7 kB / 328.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002859/0.0002859, allocations: 12 kB / 397 MB, free: 46.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0777/0.07801, allocations: 55.82 MB / 452.9 MB, free: 6.645 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2621/0.3401, allocations: 80.55 MB / 0.5209 GB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001849/0.3404, allocations: 73.69 kB / 0.521 GB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008047/0.3484, allocations: 3.279 MB / 0.5242 GB, free: 12.64 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3484, allocations: 0 / 0.5242 GB, free: 12.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.3484, allocations: 7.844 kB / 0.5242 GB, free: 12.64 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0006153/0.3491, allocations: 0.5012 MB / 0.5247 GB, free: 12.22 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.3491, allocations: 7.688 kB / 0.5247 GB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.902e-05/0.3492, allocations: 19 kB / 0.5247 GB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003755/0.3495, allocations: 268.4 kB / 0.525 GB, free: 12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.3496, allocations: 7.297 kB / 0.525 GB, free: 12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.838e-05/0.3496, allocations: 18.59 kB / 0.525 GB, free: 11.99 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002497/0.3499, allocations: 166.2 kB / 0.5251 GB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.3499, allocations: 0 / 0.5251 GB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.3499, allocations: 7.141 kB / 0.5251 GB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.3499, allocations: 3.688 kB / 0.5252 GB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002427/0.3502, allocations: 135.2 kB / 0.5253 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006567/0.3508, allocations: 0.5284 MB / 0.5258 GB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004592/0.3513, allocations: 195.1 kB / 0.526 GB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.643e-05/0.3513, allocations: 0 / 0.526 GB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.578e-05/0.3513, allocations: 43.16 kB / 0.526 GB, free: 11.56 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 9.51e-07/0.3514, allocations: 4 kB / 0.526 GB, free: 11.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.001223/0.3526, allocations: 0.5584 MB / 0.5266 GB, free: 11.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.752e-05/0.3526, allocations: 80.95 kB / 0.5266 GB, free: 11.24 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002579/0.3529, allocations: 188.4 kB / 0.5268 GB, free: 11.13 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.3529, allocations: 37.39 kB / 0.5269 GB, free: 11.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.68e-05/0.353, allocations: 134.4 kB / 0.527 GB, free: 10.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.554e-05/0.353, allocations: 38.83 kB / 0.527 GB, free: 10.96 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.434e-06/0.353, allocations: 0 / 0.527 GB, free: 10.96 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.785e-05/0.3531, allocations: 329.3 kB / 0.5273 GB, free: 10.64 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.3532, allocations: 64.3 kB / 0.5274 GB, free: 10.63 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.3533, allocations: 88.53 kB / 0.5275 GB, free: 10.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000116/0.3534, allocations: 71.3 kB / 0.5276 GB, free: 10.58 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3534, allocations: 0 / 0.5276 GB, free: 10.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002715/0.3537, allocations: 199.3 kB / 0.5277 GB, free: 10.51 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.6e-05/0.3537, allocations: 189.3 kB / 0.5279 GB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.3538, allocations: 0 / 0.5279 GB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.3538, allocations: 0 / 0.5279 GB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002476/0.354, allocations: 50.84 kB / 0.528 GB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.399e-06/0.354, allocations: 0 / 0.528 GB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.3542, allocations: 34.91 kB / 0.528 GB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.3542, allocations: 3.844 kB / 0.528 GB, free: 10.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.17e-06/0.3542, allocations: 3.844 kB / 0.528 GB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001657/0.3544, allocations: 120.9 kB / 0.5281 GB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-06/0.3544, allocations: 0 / 0.5281 GB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.956e-06/0.3544, allocations: 11.92 kB / 0.5281 GB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001908/0.3546, allocations: 38.88 kB / 0.5282 GB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.924e-06/0.3546, allocations: 0 / 0.5282 GB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.3548, allocations: 27.05 kB / 0.5282 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-06/0.3548, allocations: 3.969 kB / 0.5282 GB, free: 10.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (16): * Single equations (assignments): 16 * 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 7.956e-05/0.3549, allocations: 211.3 kB / 0.5284 GB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.455e-05/0.3549, allocations: 7.75 kB / 0.5284 GB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005858/0.3555, allocations: 318.8 kB / 0.5287 GB, free: 9.934 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3555, allocations: 0 / 0.5287 GB, free: 9.934 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3555, allocations: 1.875 kB / 0.5287 GB, free: 9.934 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.3555, allocations: 3.938 kB / 0.5287 GB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001945/0.3557, allocations: 267.9 kB / 0.529 GB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3557, allocations: 3.938 kB / 0.529 GB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.908e-05/0.3558, allocations: 15.42 kB / 0.529 GB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002789/0.3561, allocations: 95.88 kB / 0.5291 GB, free: 9.664 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.3562, allocations: 3.984 kB / 0.5291 GB, free: 9.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001475/0.3576, allocations: 1.793 MB / 0.5308 GB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.3576, allocations: 4 kB / 0.5309 GB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006646/0.3583, allocations: 468.1 kB / 0.5313 GB, free: 8.031 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.546e-05/0.3584, allocations: 96.55 kB / 0.5314 GB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.411e-05/0.3584, allocations: 7.469 kB / 0.5314 GB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001995/0.3586, allocations: 27.17 kB / 0.5314 GB, free: 7.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.536e-05/0.3586, allocations: 10.77 kB / 0.5314 GB, free: 7.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-06/0.3587, allocations: 3.844 kB / 0.5314 GB, free: 7.906 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002174/0.3589, allocations: 176.1 kB / 0.5316 GB, free: 7.805 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.3589, allocations: 0 / 0.5316 GB, free: 7.805 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003079/0.3592, allocations: 65.05 kB / 0.5317 GB, free: 7.789 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (C.FO.y,P.x_scaled[1],P.x_scaled[2]) * 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 (8): * Single equations (assignments): 7 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 8.972e-05/0.3593, allocations: 110.3 kB / 0.5318 GB, free: 7.695 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000325/0.3596, allocations: 219.5 kB / 0.532 GB, free: 7.656 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.3596, allocations: 0 / 0.532 GB, free: 7.656 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002571/0.3599, allocations: 215.6 kB / 0.5322 GB, free: 7.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002001/0.3601, allocations: 18.55 kB / 0.5322 GB, free: 7.512 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00051/0.3606, allocations: 458.7 kB / 0.5326 GB, free: 7.203 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001243/0.3608, allocations: 0.7375 MB / 0.5334 GB, free: 6.477 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.695e-05/0.3609, allocations: 39.86 kB / 0.5334 GB, free: 6.461 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.745e-05/0.3609, allocations: 19.05 kB / 0.5334 GB, free: 6.449 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3609, allocations: 0 / 0.5334 GB, free: 6.449 MB / 362.7 MB Notification: Performance of Templates: time 0.003642/0.3646, allocations: 2.182 MB / 0.5356 GB, free: 5.395 MB / 362.7 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_below_limit.makefile (rm -f AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_below_limit.sim & ./AES_AES.Coursework.Typical_control_structures.Keep_below_limit -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_below_limit.pipe 2>&1)