Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_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_1stOrder_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_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.09331/0.09331, 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.000939/0.0009389, allocations: 182.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.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.0008379/0.0008379, allocations: 115.7 kB / 328.7 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002596/0.0002596, allocations: 8 kB / 395 MB, free: 48.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0738/0.07407, allocations: 55.81 MB / 450.9 MB, free: 8.699 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2514/0.3255, allocations: 79.85 MB / 0.5183 GB, free: 11.67 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001865/0.3257, allocations: 77.11 kB / 0.5183 GB, free: 11.67 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004631/0.3303, allocations: 1.991 MB / 0.5203 GB, free: 11.24 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3304, allocations: 0 / 0.5203 GB, free: 11.24 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.3304, allocations: 3.875 kB / 0.5203 GB, free: 11.24 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.0003616/0.3308, allocations: 410.9 kB / 0.5207 GB, free: 10.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.843e-05/0.3308, allocations: 7.688 kB / 0.5207 GB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.501e-05/0.3308, allocations: 15.5 kB / 0.5207 GB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.331, allocations: 204.9 kB / 0.5209 GB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.915e-06/0.331, allocations: 6.406 kB / 0.5209 GB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.266e-05/0.331, allocations: 10.62 kB / 0.5209 GB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001092/0.3311, allocations: 75.52 kB / 0.521 GB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.3312, allocations: 0 / 0.521 GB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.3312, allocations: 11.42 kB / 0.521 GB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.3312, allocations: 9.641 kB / 0.521 GB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.73e-05/0.3312, allocations: 44 kB / 0.521 GB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004562/0.3317, allocations: 382.6 kB / 0.5214 GB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002176/0.3319, allocations: 178.7 kB / 0.5216 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.745e-06/0.332, allocations: 3.812 kB / 0.5216 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.005e-05/0.332, allocations: 30.56 kB / 0.5216 GB, free: 10.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.182e-06/0.332, allocations: 0 / 0.5216 GB, free: 10.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005756/0.3326, allocations: 445.5 kB / 0.522 GB, free: 9.871 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.653e-05/0.3326, allocations: 51.41 kB / 0.5221 GB, free: 9.809 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.786e-05/0.3327, allocations: 149.9 kB / 0.5222 GB, free: 9.711 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.157e-06/0.3327, allocations: 25.7 kB / 0.5223 GB, free: 9.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.278e-05/0.3327, allocations: 113.8 kB / 0.5224 GB, free: 9.582 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.134e-05/0.3328, allocations: 44.83 kB / 0.5224 GB, free: 9.555 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-06/0.3328, allocations: 3.625 kB / 0.5224 GB, free: 9.555 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 3.684e-05/0.3328, allocations: 329.2 kB / 0.5227 GB, free: 9.238 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.309e-05/0.3329, allocations: 30.41 kB / 0.5228 GB, free: 9.238 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.011e-05/0.3329, allocations: 57.23 kB / 0.5228 GB, free: 9.211 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.749e-05/0.333, allocations: 37.41 kB / 0.5228 GB, free: 9.207 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.333, allocations: 3.594 kB / 0.5228 GB, free: 9.207 MB / 362.7 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003597/0.3334, allocations: 355 kB / 0.5232 GB, free: 8.941 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.027e-05/0.3334, allocations: 3.844 kB / 0.5232 GB, free: 8.941 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.3334, allocations: 3.844 kB / 0.5232 GB, free: 8.941 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001403/0.3335, allocations: 46.55 kB / 0.5232 GB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.463e-05/0.3336, allocations: 30.11 kB / 0.5233 GB, free: 8.922 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001469/0.3351, allocations: 4.235 MB / 0.5274 GB, free: 20.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.257e-05/0.3352, allocations: 7.344 kB / 0.5274 GB, free: 20.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.726e-06/0.3352, allocations: 5.719 kB / 0.5274 GB, free: 20.7 MB / 378.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 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 (14): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.3353, allocations: 131.6 kB / 0.5275 GB, free: 20.58 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.836e-05/0.3353, allocations: 11.62 kB / 0.5276 GB, free: 20.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.138e-05/0.3354, allocations: 12.09 kB / 0.5276 GB, free: 20.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.3354, allocations: 3.844 kB / 0.5276 GB, free: 20.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.953e-06/0.3354, allocations: 3.953 kB / 0.5276 GB, free: 20.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3354, allocations: 2.156 kB / 0.5276 GB, free: 20.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000416/0.3358, allocations: 467.1 kB / 0.528 GB, free: 20.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3358, allocations: 0 / 0.528 GB, free: 20.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.632e-05/0.3359, allocations: 21.92 kB / 0.528 GB, free: 20.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001063/0.336, allocations: 40.81 kB / 0.5281 GB, free: 20.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.3361, allocations: 6.125 kB / 0.5281 GB, free: 20.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008954/0.337, allocations: 1.449 MB / 0.5295 GB, free: 18.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.337, allocations: 11.2 kB / 0.5295 GB, free: 18.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000255/0.3372, allocations: 305.3 kB / 0.5298 GB, free: 18.65 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.152e-05/0.3373, allocations: 88.61 kB / 0.5299 GB, free: 18.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.715e-05/0.3373, allocations: 6.266 kB / 0.5299 GB, free: 18.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.288e-05/0.3374, allocations: 3.844 kB / 0.5299 GB, free: 18.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.326e-05/0.3375, allocations: 9.688 kB / 0.5299 GB, free: 18.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.962e-06/0.3375, allocations: 7.688 kB / 0.5299 GB, free: 18.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.058e-05/0.3375, allocations: 126.5 kB / 0.53 GB, free: 18.47 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3375, allocations: 0 / 0.53 GB, free: 18.47 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003389/0.3379, allocations: 34.19 kB / 0.5301 GB, free: 18.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (G.thetap,G.deltag,G.wg,Gact.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 3} Notification: Performance of Backend phase and start with SimCode phase: time 9.453e-05/0.338, allocations: 112.5 kB / 0.5302 GB, free: 18.37 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002976/0.3383, allocations: 302.6 kB / 0.5305 GB, free: 18.15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.3383, allocations: 3.844 kB / 0.5305 GB, free: 18.15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.3384, allocations: 157.5 kB / 0.5306 GB, free: 18.03 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001798/0.3386, allocations: 21.59 kB / 0.5306 GB, free: 18.03 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006974/0.3393, allocations: 0.5891 MB / 0.5312 GB, free: 17.65 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002264/0.3396, allocations: 0.7148 MB / 0.5319 GB, free: 16.95 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.393e-05/0.3396, allocations: 10.47 kB / 0.5319 GB, free: 16.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.506e-05/0.3396, allocations: 19.12 kB / 0.5319 GB, free: 16.94 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3397, allocations: 0 / 0.5319 GB, free: 16.94 MB / 378.7 MB Notification: Performance of Templates: time 0.003005/0.3427, allocations: 1.411 MB / 0.5333 GB, free: 16.83 MB / 378.7 MB make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.makefile (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.sim & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P.pipe 2>&1)