Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_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_fixed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_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.09764/0.09764, allocations: 21.61 MB / 36.56 MB, free: 1.07 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.001041/0.001041, 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.225/1.225, allocations: 223.2 MB / 272.1 MB, free: 1.367 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.0008338/0.0008338, allocations: 96.25 kB / 328.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002657/0.0002657, allocations: 8 kB / 395 MB, free: 48.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07764/0.07792, allocations: 55.82 MB / 450.9 MB, free: 8.625 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2654/0.3433, allocations: 79.43 MB / 0.5179 GB, free: 11.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000185/0.3436, allocations: 72.98 kB / 0.5179 GB, free: 11.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003734/0.3473, allocations: 1.596 MB / 0.5195 GB, free: 11.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3473, allocations: 0 / 0.5195 GB, free: 11.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.3474, allocations: 0 / 0.5195 GB, free: 11.49 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0003505/0.3477, allocations: 399.2 kB / 0.5199 GB, free: 11.11 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.827e-05/0.3477, allocations: 7.688 kB / 0.5199 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.412e-05/0.3478, allocations: 11.66 kB / 0.5199 GB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.3479, allocations: 190.8 kB / 0.5201 GB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.3479, allocations: 3.875 kB / 0.5201 GB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.974e-05/0.3479, allocations: 7.531 kB / 0.5201 GB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.3481, allocations: 87.11 kB / 0.5202 GB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.201e-06/0.3481, allocations: 0 / 0.5202 GB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.3481, allocations: 0 / 0.5202 GB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.3481, allocations: 7.797 kB / 0.5202 GB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.895e-05/0.3482, allocations: 35.42 kB / 0.5202 GB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004356/0.3486, allocations: 377.3 kB / 0.5206 GB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002208/0.3489, allocations: 91.81 kB / 0.5206 GB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.115e-06/0.3489, allocations: 4.562 kB / 0.5206 GB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.237e-05/0.3489, allocations: 34.41 kB / 0.5207 GB, free: 10.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.3489, allocations: 0 / 0.5207 GB, free: 10.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005623/0.3495, allocations: 416.5 kB / 0.5211 GB, free: 10.22 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.775e-05/0.3495, allocations: 51.41 kB / 0.5211 GB, free: 10.16 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.075e-05/0.3496, allocations: 139.9 kB / 0.5213 GB, free: 10.06 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.518e-06/0.3496, allocations: 29.08 kB / 0.5213 GB, free: 10.03 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.272e-05/0.3496, allocations: 97.48 kB / 0.5214 GB, free: 9.945 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.027e-05/0.3497, allocations: 36.98 kB / 0.5214 GB, free: 9.922 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.199e-06/0.3497, allocations: 10.75 kB / 0.5214 GB, free: 9.918 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 3.77e-05/0.3497, allocations: 320.7 kB / 0.5217 GB, free: 9.602 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.091e-05/0.3498, allocations: 27.91 kB / 0.5218 GB, free: 9.602 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.365e-05/0.3498, allocations: 57.03 kB / 0.5218 GB, free: 9.574 MB / 362.7 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.0002929/0.3501, allocations: 115.2 kB / 0.5219 GB, free: 9.562 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.3501, allocations: 0 / 0.5219 GB, free: 9.562 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001909/0.3503, allocations: 149.1 kB / 0.5221 GB, free: 9.512 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.3503, allocations: 3.781 kB / 0.5221 GB, free: 9.512 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/0.3503, allocations: 0.7656 kB / 0.5221 GB, free: 9.512 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001232/0.3505, allocations: 45.06 kB / 0.5221 GB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.764e-05/0.3506, allocations: 26.36 kB / 0.5221 GB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000804/0.3514, allocations: 1.447 MB / 0.5236 GB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.364e-05/0.3515, allocations: 3.312 kB / 0.5236 GB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.3515, allocations: 3.969 kB / 0.5236 GB, free: 8.152 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: G.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: G.Pm = G.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 (13): * Single equations (assignments): 12 * 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 7.508e-05/0.3516, allocations: 124 kB / 0.5237 GB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.868e-05/0.3516, allocations: 21.73 kB / 0.5237 GB, free: 8.023 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.158e-05/0.3516, allocations: 13.16 kB / 0.5237 GB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.3516, allocations: 3.844 kB / 0.5237 GB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-06/0.3516, allocations: 0 / 0.5237 GB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.3516, allocations: 3.375 kB / 0.5237 GB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003622/0.352, allocations: 432.7 kB / 0.5241 GB, free: 7.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.352, allocations: 7.438 kB / 0.5241 GB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.159e-05/0.3521, allocations: 15.47 kB / 0.5242 GB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001068/0.3522, allocations: 37.94 kB / 0.5242 GB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.3522, allocations: 6.875 kB / 0.5242 GB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006502/0.3529, allocations: 1.46 MB / 0.5256 GB, free: 6.309 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3529, allocations: 3.875 kB / 0.5256 GB, free: 6.309 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002143/0.3531, allocations: 283.1 kB / 0.5259 GB, free: 6.105 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.615e-05/0.3532, allocations: 92.11 kB / 0.526 GB, free: 6.004 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.521e-05/0.3532, allocations: 7.219 kB / 0.526 GB, free: 6.004 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.738e-05/0.3533, allocations: 0 / 0.526 GB, free: 6.004 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.335e-05/0.3533, allocations: 19.06 kB / 0.526 GB, free: 5.992 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.992e-06/0.3533, allocations: 7.344 kB / 0.526 GB, free: 5.992 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.099e-05/0.3534, allocations: 113.3 kB / 0.5261 GB, free: 5.918 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3534, allocations: 0 / 0.5261 GB, free: 5.918 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002993/0.3537, allocations: 30.53 kB / 0.5262 GB, free: 5.914 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (G.thetap,G.deltag,G.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 (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 3} Notification: Performance of Backend phase and start with SimCode phase: time 7.834e-05/0.3538, allocations: 105.7 kB / 0.5263 GB, free: 5.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002307/0.354, allocations: 202.6 kB / 0.5264 GB, free: 5.699 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.354, allocations: 0 / 0.5264 GB, free: 5.699 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.3541, allocations: 149.7 kB / 0.5266 GB, free: 5.586 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00013/0.3543, allocations: 7.281 kB / 0.5266 GB, free: 5.586 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006698/0.3549, allocations: 0.537 MB / 0.5271 GB, free: 5.234 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002203/0.3552, allocations: 0.7091 MB / 0.5278 GB, free: 20.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.676e-05/0.3552, allocations: 7.875 kB / 0.5278 GB, free: 20.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.291e-05/0.3552, allocations: 14.81 kB / 0.5278 GB, free: 20.52 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3552, allocations: 0 / 0.5278 GB, free: 20.52 MB / 378.7 MB Notification: Performance of Templates: time 0.002677/0.3579, allocations: 1.202 MB / 0.529 GB, free: 20.43 MB / 378.7 MB make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.makefile (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.sim & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe 2>&1)