Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.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_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") [/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.09573/0.09573, allocations: 21.61 MB / 36.56 MB, free: 1.098 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.0009471/0.0009471, allocations: 183.3 kB / 42.83 MB, free: 3.785 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.233/1.233, allocations: 223.2 MB / 272.1 MB, free: 1.414 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.0009184/0.0009183, allocations: 99.81 kB / 328.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000277/0.000277, allocations: 4 kB / 397 MB, free: 46.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07812/0.07841, allocations: 55.81 MB / 452.9 MB, free: 6.676 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2588/0.3373, allocations: 79.83 MB / 0.5202 GB, free: 12.99 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001808/0.3375, allocations: 76.52 kB / 0.5203 GB, free: 12.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008025/0.3455, allocations: 2.85 MB / 0.5231 GB, free: 12.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3456, allocations: 1.125 kB / 0.5231 GB, free: 12.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.3456, allocations: 7.875 kB / 0.5231 GB, free: 12.55 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006915/0.3463, allocations: 491 kB / 0.5235 GB, free: 12.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.3463, allocations: 11.16 kB / 0.5235 GB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.979e-05/0.3464, allocations: 15.5 kB / 0.5236 GB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004879/0.3469, allocations: 290.9 kB / 0.5238 GB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.3469, allocations: 3.625 kB / 0.5238 GB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.462e-05/0.3469, allocations: 15.28 kB / 0.5239 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001889/0.3471, allocations: 117 kB / 0.524 GB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.3471, allocations: 3.938 kB / 0.524 GB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.3471, allocations: 3.688 kB / 0.524 GB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.3472, allocations: 7.797 kB / 0.524 GB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.3473, allocations: 86.25 kB / 0.5241 GB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006001/0.3479, allocations: 0.5791 MB / 0.5246 GB, free: 11.4 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003289/0.3483, allocations: 142.7 kB / 0.5248 GB, free: 11.37 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.227e-05/0.3483, allocations: 4 kB / 0.5248 GB, free: 11.37 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.574e-05/0.3483, allocations: 38.09 kB / 0.5248 GB, free: 11.33 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.182e-06/0.3483, allocations: 0 / 0.5248 GB, free: 11.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003146/0.3487, allocations: 160.6 kB / 0.525 GB, free: 11.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.28e-05/0.3487, allocations: 51.41 kB / 0.525 GB, free: 11.22 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004017/0.3491, allocations: 238.7 kB / 0.5252 GB, free: 11.12 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.123e-05/0.3491, allocations: 25.7 kB / 0.5253 GB, free: 11.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.086e-05/0.3492, allocations: 120.3 kB / 0.5254 GB, free: 11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.279e-05/0.3492, allocations: 29.2 kB / 0.5254 GB, free: 10.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.991e-06/0.3492, allocations: 3.938 kB / 0.5254 GB, free: 10.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.538e-05/0.3493, allocations: 330.1 kB / 0.5257 GB, free: 10.67 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.103e-05/0.3493, allocations: 37.39 kB / 0.5258 GB, free: 10.67 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.466e-05/0.3494, allocations: 68.8 kB / 0.5258 GB, free: 10.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.495e-05/0.3495, allocations: 47.08 kB / 0.5259 GB, free: 10.64 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3495, allocations: 0 / 0.5259 GB, free: 10.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002123/0.3497, allocations: 169.6 kB / 0.526 GB, free: 10.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.3498, allocations: 5.781 kB / 0.526 GB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.3498, allocations: 7.922 kB / 0.526 GB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.3498, allocations: 7.875 kB / 0.526 GB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.3499, allocations: 21.2 kB / 0.5261 GB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.3499, allocations: 3.781 kB / 0.5261 GB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001834/0.3501, allocations: 31.52 kB / 0.5261 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.928e-06/0.3501, allocations: 7.25 kB / 0.5261 GB, free: 10.57 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: g.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cps.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001123/0.3502, allocations: 137.2 kB / 0.5262 GB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.404e-05/0.3503, allocations: 15.61 kB / 0.5263 GB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.275e-05/0.3503, allocations: 22.09 kB / 0.5263 GB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.3503, allocations: 3.688 kB / 0.5263 GB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.3503, allocations: 384 / 0.5263 GB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.3503, allocations: 0 / 0.5263 GB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001848/0.3505, allocations: 233.3 kB / 0.5265 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3505, allocations: 5.5 kB / 0.5265 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.3507, allocations: 18.28 kB / 0.5265 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.3507, allocations: 3.953 kB / 0.5265 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.3507, allocations: 6.656 kB / 0.5265 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3507, allocations: 6.266 kB / 0.5265 GB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3507, allocations: 0 / 0.5265 GB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002978/0.351, allocations: 285.6 kB / 0.5268 GB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.393e-05/0.3511, allocations: 95.31 kB / 0.5269 GB, free: 9.992 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.531e-05/0.3511, allocations: 10.86 kB / 0.5269 GB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002142/0.3513, allocations: 27.73 kB / 0.5269 GB, free: 9.984 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.179e-05/0.3514, allocations: 6.828 kB / 0.5269 GB, free: 9.984 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.3514, allocations: 0 / 0.5269 GB, free: 9.984 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003263/0.3517, allocations: 203.2 kB / 0.5271 GB, free: 9.906 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3517, allocations: 0 / 0.5271 GB, free: 9.906 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002272/0.3519, allocations: 25.22 kB / 0.5272 GB, free: 9.906 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (N.y,Cps.x_scaled[1],g.x_scaled[1]) * 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 (10): * Single equations (assignments): 10 * 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.59e-05/0.352, allocations: 105.7 kB / 0.5273 GB, free: 9.812 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002162/0.3523, allocations: 105 kB / 0.5274 GB, free: 9.809 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3523, allocations: 0 / 0.5274 GB, free: 9.809 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.343e-05/0.3523, allocations: 51.23 kB / 0.5274 GB, free: 9.805 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002098/0.3526, allocations: 22.08 kB / 0.5274 GB, free: 9.801 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004952/0.3531, allocations: 373.6 kB / 0.5278 GB, free: 9.582 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001259/0.3532, allocations: 0.7326 MB / 0.5285 GB, free: 8.883 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.505e-05/0.3533, allocations: 27.36 kB / 0.5285 GB, free: 8.879 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.645e-05/0.3533, allocations: 15.28 kB / 0.5285 GB, free: 8.871 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3533, allocations: 4 kB / 0.5286 GB, free: 8.867 MB / 362.7 MB Notification: Performance of Templates: time 0.002728/0.3561, allocations: 1.17 MB / 0.5297 GB, free: 8.398 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.makefile (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1)