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.0008634/0.0008631, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0009468/0.0009468, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.563/1.563, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2777/0.2777, allocations: 22.34 MB / 313.4 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003738/0.0003743, allocations: 4 kB / 379.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3821/0.3825, allocations: 55.97 MB / 435.9 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.003409/0.386, allocations: 1.349 MB / 437.3 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.3874, allocations: 439.3 kB / 437.7 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001686/0.3876, allocations: 0 / 437.7 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.105e-05/0.3877, allocations: 7.359 kB / 437.7 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003849/0.3881, allocations: 25.94 kB / 437.7 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00017/0.3883, allocations: 21.77 kB / 437.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003557/0.3886, allocations: 119.5 kB / 437.9 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002419/0.3889, allocations: 26.62 kB / 437.9 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002452/0.3892, allocations: 43.92 kB / 437.9 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000165/0.3893, allocations: 44.67 kB / 438 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.919e-05/0.3894, allocations: 6.984 kB / 438 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.283e-05/0.3895, allocations: 6.594 kB / 438 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.541e-05/0.3895, allocations: 18.2 kB / 438 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.259e-05/0.3896, allocations: 48.8 kB / 438 MB, free: 36.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.3898, allocations: 75.31 kB / 438.1 MB, free: 36.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3898, allocations: 0 / 438.1 MB, free: 36.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3898, allocations: 0 / 438.1 MB, free: 36.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.3898, allocations: 0 / 438.1 MB, free: 36.79 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.0008044/0.3906, allocations: 402 kB / 438.5 MB, free: 36.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/0.3907, allocations: 12.69 kB / 438.5 MB, free: 36.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.169e-05/0.3908, allocations: 16.47 kB / 438.5 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003077/0.3911, allocations: 205.6 kB / 438.7 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.082e-05/0.3911, allocations: 6.969 kB / 438.7 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.36e-05/0.3912, allocations: 9.938 kB / 438.8 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002294/0.3914, allocations: 76.16 kB / 438.8 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.3915, allocations: 0 / 438.8 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.053e-05/0.3915, allocations: 7.953 kB / 438.8 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.3915, allocations: 3.031 kB / 438.8 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001481/0.3917, allocations: 46.09 kB / 438.9 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008904/0.3926, allocations: 390.3 kB / 439.3 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004149/0.393, allocations: 178.4 kB / 439.4 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.3932, allocations: 44.11 kB / 439.5 MB, free: 35.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.3932, allocations: 5.781 kB / 439.5 MB, free: 35.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.3932, allocations: 30.78 kB / 439.5 MB, free: 35.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 3.677e-06/0.3933, allocations: 0 / 439.5 MB, free: 35.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.001175/0.3944, allocations: 447.7 kB / 440 MB, free: 35.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.3945, allocations: 59.3 kB / 440 MB, free: 35.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/0.3947, allocations: 158.3 kB / 440.2 MB, free: 35.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.3948, allocations: 25.7 kB / 440.2 MB, free: 34.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.127e-05/0.3948, allocations: 113.4 kB / 440.3 MB, free: 34.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.931e-05/0.3949, allocations: 44.06 kB / 440.4 MB, free: 34.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.044e-05/0.3949, allocations: 4 kB / 440.4 MB, free: 34.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.159e-05/0.395, allocations: 321.3 kB / 440.7 MB, free: 34.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.125e-05/0.3951, allocations: 34.02 kB / 440.7 MB, free: 34.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001139/0.3953, allocations: 50.59 kB / 440.8 MB, free: 34.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001284/0.3954, allocations: 41 kB / 440.8 MB, free: 34.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.3954, allocations: 2.781 kB / 440.8 MB, free: 34.45 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.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.0007709/0.3962, allocations: 355.5 kB / 441.1 MB, free: 34.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.3963, allocations: 7.094 kB / 441.1 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.3963, allocations: 0 / 441.1 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000314/0.3966, allocations: 48.19 kB / 441.2 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001769/0.3968, allocations: 31.53 kB / 441.2 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002615/0.3994, allocations: 4.232 MB / 445.5 MB, free: 29.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001325/0.3996, allocations: 2.969 kB / 445.5 MB, free: 29.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.813e-05/0.3996, allocations: 10.44 kB / 445.5 MB, free: 29.77 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 (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.0001572/0.3998, allocations: 123.9 kB / 445.6 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.786e-05/0.3999, allocations: 12.97 kB / 445.6 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.687e-05/0.3999, allocations: 18.89 kB / 445.6 MB, free: 29.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.3999, allocations: 7.062 kB / 445.6 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.4, allocations: 0 / 445.6 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.4, allocations: 3.375 kB / 445.6 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007543/0.4007, allocations: 449.9 kB / 446.1 MB, free: 29.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.4008, allocations: 2.656 kB / 446.1 MB, free: 29.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001762/0.4009, allocations: 21.5 kB / 446.1 MB, free: 29.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002133/0.4012, allocations: 45.09 kB / 446.1 MB, free: 29.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/0.4012, allocations: 6.688 kB / 446.1 MB, free: 29.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/0.4025, allocations: 1.456 MB / 447.6 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.4025, allocations: 3.984 kB / 447.6 MB, free: 27.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004466/0.4029, allocations: 272.7 kB / 447.9 MB, free: 27.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.811e-05/0.403, allocations: 95.3 kB / 448 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.203e-05/0.4031, allocations: 7.031 kB / 448 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.4032, allocations: 4 kB / 448 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.342e-05/0.4033, allocations: 12.94 kB / 448 MB, free: 27.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.4033, allocations: 3.375 kB / 448 MB, free: 27.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001063/0.4034, allocations: 118.8 kB / 448.1 MB, free: 27.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4034, allocations: 0 / 448.1 MB, free: 27.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006275/0.4041, allocations: 28.59 kB / 448.1 MB, free: 27.35 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 (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 0.0001114/0.4042, allocations: 108.4 kB / 448.2 MB, free: 27.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004674/0.4047, allocations: 329.1 kB / 448.6 MB, free: 26.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4047, allocations: 0 / 448.6 MB, free: 26.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001804/0.4049, allocations: 149.7 kB / 448.7 MB, free: 26.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004719/0.4054, allocations: 23.52 kB / 448.7 MB, free: 26.85 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.4067, allocations: 0.598 MB / 449.3 MB, free: 26.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001941/0.4069, allocations: 0.7067 MB / 450 MB, free: 25.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.627e-05/0.407, allocations: 9.703 kB / 450 MB, free: 25.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.972e-05/0.407, allocations: 13.41 kB / 450.1 MB, free: 25.74 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.407, allocations: 4 kB / 450.1 MB, free: 25.73 MB / 350.1 MB Notification: Performance of Templates: time 0.006623/0.4137, allocations: 1.416 MB / 451.5 MB, free: 25.64 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)