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/ModelicaServices 4.0.0+maint.om/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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 111.3 kB / 15.34 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001589/0.001589, allocations: 190.9 kB / 16.25 MB, free: 6.148 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2077/0.2077, allocations: 22.35 MB / 312.4 MB, free: 12.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001332, allocations: 63.89 kB / 378.2 MB, free: 13.01 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2671, allocations: 54.93 MB / 433.2 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002478/0.2696, allocations: 1.721 MB / 434.9 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005948/0.2702, allocations: 471.3 kB / 435.4 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.092e-05/0.2703, allocations: 0 / 435.4 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.538e-05/0.2704, allocations: 3.938 kB / 435.4 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001732/0.2706, allocations: 24.08 kB / 435.4 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.29e-05/0.2706, allocations: 33.31 kB / 435.4 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000132/0.2708, allocations: 119 kB / 435.5 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.2709, allocations: 28.78 kB / 435.6 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.652e-05/0.271, allocations: 55.02 kB / 435.6 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.051e-05/0.2711, allocations: 51.8 kB / 435.7 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.939e-05/0.2711, allocations: 12.44 kB / 435.7 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.674e-05/0.2711, allocations: 8.625 kB / 435.7 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.258e-05/0.2711, allocations: 33.38 kB / 435.7 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.352e-05/0.2712, allocations: 45.36 kB / 435.8 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001063/0.2713, allocations: 107.5 kB / 435.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2713, allocations: 0 / 435.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2713, allocations: 0.75 kB / 435.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.92e-06/0.2713, allocations: 0 / 435.9 MB, free: 37.04 MB / 350.1 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.0004963/0.2718, allocations: 424.9 kB / 436.3 MB, free: 36.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.2719, allocations: 8.906 kB / 436.3 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.839e-05/0.2719, allocations: 14.5 kB / 436.3 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001608/0.2721, allocations: 205.1 kB / 436.5 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.416e-06/0.2721, allocations: 7.062 kB / 436.5 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.666e-05/0.2721, allocations: 13.84 kB / 436.5 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001249/0.2723, allocations: 80.67 kB / 436.6 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.2723, allocations: 0 / 436.6 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.2723, allocations: 4 kB / 436.6 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.2723, allocations: 6.719 kB / 436.6 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.58e-05/0.2724, allocations: 48.23 kB / 436.7 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004831/0.2729, allocations: 383.3 kB / 437 MB, free: 36.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002358/0.2731, allocations: 183.3 kB / 437.2 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.378e-05/0.2732, allocations: 43.48 kB / 437.3 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.222e-05/0.2732, allocations: 3.375 kB / 437.3 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.452e-05/0.2732, allocations: 37.44 kB / 437.3 MB, free: 35.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.2732, allocations: 0 / 437.3 MB, free: 35.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.000639/0.2739, allocations: 449.9 kB / 437.7 MB, free: 35.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.017e-05/0.2739, allocations: 57.94 kB / 437.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.274, allocations: 154.7 kB / 437.9 MB, free: 35.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.718e-06/0.274, allocations: 29.7 kB / 438 MB, free: 35.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.769e-05/0.2741, allocations: 112.8 kB / 438.1 MB, free: 35.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.773e-05/0.2741, allocations: 47.39 kB / 438.1 MB, free: 35.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.038e-05/0.2742, allocations: 29.12 kB / 438.2 MB, free: 35.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.576e-05/0.2742, allocations: 332.2 kB / 438.5 MB, free: 34.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.598e-05/0.2743, allocations: 27.25 kB / 438.5 MB, free: 34.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.47e-05/0.2743, allocations: 56.3 kB / 438.6 MB, free: 34.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003784/0.2747, allocations: 185.1 kB / 438.7 MB, free: 34.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2747, allocations: 3.938 kB / 438.7 MB, free: 34.58 MB / 350.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ G.Pm ; G.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pcmd 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.0004167/0.2752, allocations: 343.5 kB / 439.1 MB, free: 34.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.2752, allocations: 5 kB / 439.1 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.2752, allocations: 0 / 439.1 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000156/0.2753, allocations: 55.38 kB / 439.1 MB, free: 34.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.296e-05/0.2754, allocations: 30.25 kB / 439.2 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001638/0.2771, allocations: 4.625 MB / 443.8 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.011e-05/0.2772, allocations: 2.719 kB / 443.8 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.2772, allocations: 14.61 kB / 443.8 MB, free: 29.51 MB / 350.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 8.747e-05/0.2773, allocations: 136.9 kB / 443.9 MB, free: 29.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.241e-05/0.2773, allocations: 13.38 kB / 444 MB, free: 29.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.459e-05/0.2774, allocations: 19.53 kB / 444 MB, free: 29.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.2774, allocations: 0 / 444 MB, free: 29.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.2774, allocations: 0 / 444 MB, free: 29.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.2774, allocations: 4 kB / 444 MB, free: 29.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004038/0.2778, allocations: 459.2 kB / 444.4 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.2778, allocations: 4.062 kB / 444.4 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.991e-05/0.2779, allocations: 19.89 kB / 444.5 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001166/0.278, allocations: 43.5 kB / 444.5 MB, free: 28.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.2781, allocations: 2.594 kB / 444.5 MB, free: 28.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000747/0.2788, allocations: 1.621 MB / 446.1 MB, free: 27.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2788, allocations: 3.234 kB / 446.1 MB, free: 27.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002456/0.2791, allocations: 284.5 kB / 446.4 MB, free: 27.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.959e-05/0.2791, allocations: 90.05 kB / 446.5 MB, free: 27.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.2791, allocations: 4 kB / 446.5 MB, free: 27.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.2792, allocations: 2.906 kB / 446.5 MB, free: 27.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.668e-05/0.2793, allocations: 9.969 kB / 446.5 MB, free: 27.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.2793, allocations: 13.5 kB / 446.5 MB, free: 27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.253e-05/0.2794, allocations: 121 kB / 446.6 MB, free: 26.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2794, allocations: 0 / 446.6 MB, free: 26.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003725/0.2797, allocations: 31 kB / 446.7 MB, free: 26.91 MB / 350.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 7.588e-05/0.2798, allocations: 100.2 kB / 446.8 MB, free: 26.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003217/0.2802, allocations: 324.6 kB / 447.1 MB, free: 26.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2802, allocations: 0 / 447.1 MB, free: 26.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001162/0.2803, allocations: 156.5 kB / 447.2 MB, free: 26.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.2806, allocations: 21.98 kB / 447.3 MB, free: 26.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007752/0.2814, allocations: 0.5437 MB / 447.8 MB, free: 26.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001171/0.2815, allocations: 0.7149 MB / 448.5 MB, free: 25.31 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.473e-05/0.2816, allocations: 14.14 kB / 448.5 MB, free: 25.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.905e-05/0.2816, allocations: 13.22 kB / 448.5 MB, free: 25.3 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2816, allocations: 0 / 448.5 MB, free: 25.3 MB / 350.1 MB Notification: Performance of Templates: time 0.003682/0.2853, allocations: 1.581 MB / 450.1 MB, free: 25.2 MB / 350.1 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)