Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.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_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits") translateModel(AES.Coursework.Typical_control_structures.Keep_within_two_limits,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits") [/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.09111/0.09111, allocations: 21.61 MB / 36.56 MB, free: 1.137 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.001058/0.001058, allocations: 182.5 kB / 42.82 MB, free: 3.836 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.203/1.203, allocations: 223.2 MB / 272.2 MB, free: 1.434 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.0008823/0.0008823, allocations: 96.3 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003086/0.0003085, allocations: 8 kB / 397 MB, free: 46.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07766/0.07798, allocations: 55.83 MB / 452.9 MB, free: 6.648 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2627/0.3407, allocations: 80.74 MB / 0.5211 GB, free: 13.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002147/0.3409, allocations: 71.06 kB / 0.5212 GB, free: 13.22 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01091/0.3519, allocations: 4.602 MB / 0.5257 GB, free: 12.44 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3519, allocations: 0 / 0.5257 GB, free: 12.44 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.629e-05/0.3519, allocations: 14.89 kB / 0.5257 GB, free: 12.44 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0007432/0.3527, allocations: 0.586 MB / 0.5262 GB, free: 11.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.951e-05/0.3527, allocations: 7.844 kB / 0.5262 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.567e-05/0.3528, allocations: 27.25 kB / 0.5263 GB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000451/0.3532, allocations: 313.1 kB / 0.5266 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.3532, allocations: 18.69 kB / 0.5266 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.497e-05/0.3533, allocations: 21.84 kB / 0.5266 GB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003708/0.3537, allocations: 262 kB / 0.5269 GB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.3537, allocations: 3.953 kB / 0.5269 GB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/0.3537, allocations: 6.688 kB / 0.5269 GB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.3537, allocations: 7.906 kB / 0.5269 GB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003453/0.3541, allocations: 197.3 kB / 0.5271 GB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000873/0.355, allocations: 0.7145 MB / 0.5278 GB, free: 11.06 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006549/0.3556, allocations: 264.3 kB / 0.528 GB, free: 11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.3557, allocations: 7.781 kB / 0.528 GB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.198e-05/0.3557, allocations: 34 kB / 0.5281 GB, free: 10.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.172e-06/0.3557, allocations: 0 / 0.5281 GB, free: 10.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.002029/0.3577, allocations: 0.8451 MB / 0.5289 GB, free: 10.6 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.872e-05/0.3578, allocations: 106.6 kB / 0.529 GB, free: 10.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002889/0.358, allocations: 232.6 kB / 0.5292 GB, free: 10.35 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.3581, allocations: 32.86 kB / 0.5292 GB, free: 10.32 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.888e-05/0.3582, allocations: 159 kB / 0.5294 GB, free: 10.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.599e-05/0.3582, allocations: 65.92 kB / 0.5294 GB, free: 10.15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.004e-05/0.3582, allocations: 0 / 0.5294 GB, free: 10.15 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.397e-05/0.3583, allocations: 336.4 kB / 0.5298 GB, free: 9.832 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.3584, allocations: 95.47 kB / 0.5299 GB, free: 9.812 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.3586, allocations: 138.8 kB / 0.53 GB, free: 9.754 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000173/0.3588, allocations: 103.1 kB / 0.5301 GB, free: 9.742 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3588, allocations: 0 / 0.5301 GB, free: 9.742 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003892/0.3592, allocations: 287.1 kB / 0.5304 GB, free: 9.656 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.332e-05/0.3592, allocations: 274 kB / 0.5306 GB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.3592, allocations: 0 / 0.5306 GB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.3593, allocations: 3.844 kB / 0.5306 GB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/0.3595, allocations: 65.44 kB / 0.5307 GB, free: 9.363 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.3596, allocations: 4 kB / 0.5307 GB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002141/0.3598, allocations: 50.31 kB / 0.5307 GB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.413e-05/0.3598, allocations: 3.844 kB / 0.5307 GB, free: 9.336 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.119e-06/0.3598, allocations: 3.875 kB / 0.5308 GB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002124/0.36, allocations: 170.7 kB / 0.5309 GB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-06/0.36, allocations: 3.875 kB / 0.5309 GB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-06/0.36, allocations: 4.062 kB / 0.5309 GB, free: 9.309 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002258/0.3603, allocations: 50.62 kB / 0.531 GB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.004e-06/0.3603, allocations: 0 / 0.531 GB, free: 9.297 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000172/0.3605, allocations: 34.2 kB / 0.531 GB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.3605, allocations: 7.828 kB / 0.531 GB, free: 9.281 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (23): * Single equations (assignments): 23 * 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 9.352e-05/0.3606, allocations: 222 kB / 0.5312 GB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.152e-05/0.3606, allocations: 27.44 kB / 0.5312 GB, free: 9.066 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008496/0.3615, allocations: 455.6 kB / 0.5317 GB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.3615, allocations: 0 / 0.5317 GB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3615, allocations: 3.844 kB / 0.5317 GB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.3615, allocations: 0 / 0.5317 GB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002428/0.3618, allocations: 324.4 kB / 0.532 GB, free: 8.672 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.3618, allocations: 4 kB / 0.532 GB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.3619, allocations: 23.44 kB / 0.532 GB, free: 8.656 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004105/0.3623, allocations: 151.4 kB / 0.5322 GB, free: 8.613 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.971e-05/0.3623, allocations: 15.09 kB / 0.5322 GB, free: 8.605 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002335/0.3647, allocations: 2.374 MB / 0.5345 GB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3647, allocations: 0 / 0.5345 GB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009498/0.3656, allocations: 0.6315 MB / 0.5351 GB, free: 6.746 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.039e-05/0.3657, allocations: 104.5 kB / 0.5352 GB, free: 6.637 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.78e-05/0.3657, allocations: 3.938 kB / 0.5352 GB, free: 6.637 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.366, allocations: 30.22 kB / 0.5352 GB, free: 6.629 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.205e-05/0.366, allocations: 23.59 kB / 0.5353 GB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.366, allocations: 7.844 kB / 0.5353 GB, free: 6.613 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002453/0.3663, allocations: 196.5 kB / 0.5355 GB, free: 6.508 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3663, allocations: 3.938 kB / 0.5355 GB, free: 6.504 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003687/0.3667, allocations: 92.09 kB / 0.5356 GB, free: 6.488 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (C_hi.FO.y,P.x_scaled[1],P.x_scaled[2],C_lo.FO.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 (9): * Single equations (assignments): 8 * 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 9} Notification: Performance of Backend phase and start with SimCode phase: time 9.938e-05/0.3668, allocations: 114 kB / 0.5357 GB, free: 6.395 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004584/0.3672, allocations: 312.7 kB / 0.536 GB, free: 6.344 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3672, allocations: 8.219 kB / 0.536 GB, free: 6.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004238/0.3677, allocations: 279.8 kB / 0.5362 GB, free: 6.191 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002371/0.3679, allocations: 33.5 kB / 0.5363 GB, free: 6.184 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000765/0.3687, allocations: 0.6291 MB / 0.5369 GB, free: 5.773 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001378/0.3688, allocations: 0.7688 MB / 0.5376 GB, free: 5.039 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001346/0.369, allocations: 48.94 kB / 0.5377 GB, free: 5.016 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.487e-05/0.369, allocations: 22.95 kB / 0.5377 GB, free: 5.004 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.369, allocations: 3.938 kB / 0.5377 GB, free: 5 MB / 362.7 MB Notification: Performance of Templates: time 0.004678/0.3737, allocations: 3.178 MB / 0.5408 GB, free: 3.461 MB / 362.7 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.makefile (rm -f AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.sim & ./AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Keep_within_two_limits.pipe 2>&1)