Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.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.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P") [/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.09226/0.09226, allocations: 21.62 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.001016/0.001016, allocations: 183.4 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.194/1.194, allocations: 223.2 MB / 272.1 MB, free: 1.812 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.0008431/0.0008432, allocations: 111.1 kB / 328.7 MB, free: 12.14 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002595/0.0002595, allocations: 8 kB / 395 MB, free: 48.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07231/0.07258, allocations: 55.83 MB / 450.8 MB, free: 8.695 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2604/0.333, allocations: 79.05 MB / 0.5175 GB, free: 11.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001803/0.3332, allocations: 75.12 kB / 0.5176 GB, free: 11.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002961/0.3362, allocations: 1.286 MB / 0.5188 GB, free: 11.12 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3362, allocations: 0 / 0.5188 GB, free: 11.12 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.3362, allocations: 0 / 0.5188 GB, free: 11.12 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0002952/0.3365, allocations: 375.4 kB / 0.5192 GB, free: 10.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.815e-05/0.3366, allocations: 9.812 kB / 0.5192 GB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.848e-05/0.3366, allocations: 7.781 kB / 0.5192 GB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.206e-05/0.3367, allocations: 183.8 kB / 0.5194 GB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.3367, allocations: 6.812 kB / 0.5194 GB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.742e-05/0.3368, allocations: 6.719 kB / 0.5194 GB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.875e-05/0.3369, allocations: 64.62 kB / 0.5194 GB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.162e-06/0.3369, allocations: 3.984 kB / 0.5194 GB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.3369, allocations: 0 / 0.5194 GB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.3369, allocations: 3.953 kB / 0.5194 GB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.451e-05/0.337, allocations: 29.03 kB / 0.5195 GB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003602/0.3373, allocations: 306.6 kB / 0.5198 GB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001917/0.3375, allocations: 82.67 kB / 0.5198 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.238e-06/0.3375, allocations: 0 / 0.5198 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.317e-05/0.3376, allocations: 39.03 kB / 0.5199 GB, free: 10.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 9.31e-07/0.3376, allocations: 0 / 0.5199 GB, free: 10.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005127/0.3381, allocations: 394.6 kB / 0.5203 GB, free: 9.875 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.606e-05/0.3381, allocations: 51.41 kB / 0.5203 GB, free: 9.812 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.701e-05/0.3382, allocations: 121.1 kB / 0.5204 GB, free: 9.715 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.315e-06/0.3382, allocations: 29.02 kB / 0.5204 GB, free: 9.684 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.915e-05/0.3382, allocations: 100.2 kB / 0.5205 GB, free: 9.594 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.844e-05/0.3383, allocations: 34.38 kB / 0.5206 GB, free: 9.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.177e-06/0.3383, allocations: 7 kB / 0.5206 GB, free: 9.566 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 3.622e-05/0.3383, allocations: 323 kB / 0.5209 GB, free: 9.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.429e-05/0.3383, allocations: 23.11 kB / 0.5209 GB, free: 9.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.114e-05/0.3384, allocations: 43.89 kB / 0.521 GB, free: 9.227 MB / 362.7 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.0002636/0.3387, allocations: 95.52 kB / 0.521 GB, free: 9.223 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.3387, allocations: 3.938 kB / 0.5211 GB, free: 9.219 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001738/0.3388, allocations: 132.2 kB / 0.5212 GB, free: 9.168 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.3389, allocations: 9.281 kB / 0.5212 GB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.3389, allocations: 0.8125 kB / 0.5212 GB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001173/0.339, allocations: 30.45 kB / 0.5212 GB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.292e-05/0.3391, allocations: 29.67 kB / 0.5212 GB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007461/0.3398, allocations: 1.418 MB / 0.5226 GB, free: 7.801 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.147e-05/0.3399, allocations: 7.422 kB / 0.5226 GB, free: 7.797 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.583e-06/0.3399, allocations: 3.844 kB / 0.5226 GB, free: 7.797 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: Pm = Pcmd. 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 (12): * Single equations (assignments): 11 * 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 3} Notification: Performance of prepare postOptimizeDAE: time 6.633e-05/0.34, allocations: 119.8 kB / 0.5228 GB, free: 7.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.594e-05/0.34, allocations: 11.7 kB / 0.5228 GB, free: 7.672 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.047e-05/0.3401, allocations: 16.7 kB / 0.5228 GB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.3401, allocations: 0 / 0.5228 GB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.3401, allocations: 0 / 0.5228 GB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.3401, allocations: 1.781 kB / 0.5228 GB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003002/0.3404, allocations: 383.1 kB / 0.5231 GB, free: 7.344 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.3404, allocations: 4.031 kB / 0.5232 GB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.37e-05/0.3405, allocations: 18.14 kB / 0.5232 GB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.906e-05/0.3406, allocations: 37.14 kB / 0.5232 GB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-06/0.3406, allocations: 3.688 kB / 0.5232 GB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006459/0.3413, allocations: 1.417 MB / 0.5246 GB, free: 5.977 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3413, allocations: 3.938 kB / 0.5246 GB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001895/0.3415, allocations: 250.3 kB / 0.5248 GB, free: 5.797 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.258e-05/0.3415, allocations: 87.02 kB / 0.5249 GB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.3415, allocations: 4.062 kB / 0.5249 GB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.295e-05/0.3416, allocations: 5.031 kB / 0.5249 GB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.689e-05/0.3416, allocations: 11.61 kB / 0.5249 GB, free: 5.695 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.099e-06/0.3416, allocations: 3.812 kB / 0.5249 GB, free: 5.695 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.857e-05/0.3417, allocations: 105.7 kB / 0.525 GB, free: 5.617 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3417, allocations: 0 / 0.525 GB, free: 5.617 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002894/0.342, allocations: 24.81 kB / 0.5251 GB, free: 5.617 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (thetap,deltag,wg) * 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 (7): * Single equations (assignments): 6 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 7.879e-05/0.3421, allocations: 109.3 kB / 0.5252 GB, free: 5.523 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002104/0.3423, allocations: 180.9 kB / 0.5253 GB, free: 5.41 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3423, allocations: 0 / 0.5253 GB, free: 5.41 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.957e-05/0.3424, allocations: 148 kB / 0.5255 GB, free: 5.293 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.3425, allocations: 18.67 kB / 0.5255 GB, free: 5.281 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006049/0.3431, allocations: 484.7 kB / 0.526 GB, free: 4.957 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002548/0.3434, allocations: 0.705 MB / 0.5267 GB, free: 20.26 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.369e-05/0.3434, allocations: 7.969 kB / 0.5267 GB, free: 20.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.996e-05/0.3435, allocations: 11.28 kB / 0.5267 GB, free: 20.25 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3435, allocations: 0 / 0.5267 GB, free: 20.25 MB / 378.7 MB Notification: Performance of Templates: time 0.002466/0.3459, allocations: 0.9982 MB / 0.5276 GB, free: 20.16 MB / 378.7 MB make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.makefile (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.sim & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1)