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.0008174/0.0008174, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.01003/0.01004, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.445/1.445, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2307/0.2307, allocations: 22.34 MB / 313.8 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003023/0.0003024, allocations: 15.98 kB / 380.5 MB, free: 12.22 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3495, allocations: 55.96 MB / 436.5 MB, free: 38.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.001612/0.3511, allocations: 1.388 MB / 437.9 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005799/0.3517, allocations: 453.9 kB / 438.3 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.405e-05/0.3518, allocations: 0 / 438.3 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.314e-05/0.3519, allocations: 10.09 kB / 438.3 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002047/0.3521, allocations: 26.09 kB / 438.4 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.782e-05/0.3522, allocations: 25.52 kB / 438.4 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001505/0.3523, allocations: 119.1 kB / 438.5 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.3525, allocations: 30.58 kB / 438.5 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.716e-05/0.3526, allocations: 48.69 kB / 438.6 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.179e-05/0.3527, allocations: 49.81 kB / 438.6 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.337e-05/0.3527, allocations: 5.188 kB / 438.6 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.773e-05/0.3527, allocations: 7.062 kB / 438.7 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.518e-05/0.3527, allocations: 20.27 kB / 438.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.108e-05/0.3528, allocations: 69.89 kB / 438.7 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.3529, allocations: 101.9 kB / 438.8 MB, free: 37.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3529, allocations: 2.688 kB / 438.8 MB, free: 37.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.3529, allocations: 0 / 438.8 MB, free: 37.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.3529, allocations: 0 / 438.8 MB, free: 37.11 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.0004835/0.3534, allocations: 405.1 kB / 439.2 MB, free: 36.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.3535, allocations: 9.219 kB / 439.2 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.087e-05/0.3535, allocations: 17.06 kB / 439.3 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001809/0.3537, allocations: 202.4 kB / 439.5 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.3537, allocations: 11.09 kB / 439.5 MB, free: 36.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.559e-05/0.3538, allocations: 12.06 kB / 439.5 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001332/0.3539, allocations: 81.64 kB / 439.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.3539, allocations: 3.938 kB / 439.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.3539, allocations: 4 kB / 439.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.354, allocations: 2.906 kB / 439.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.008e-05/0.354, allocations: 41.23 kB / 439.6 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005233/0.3546, allocations: 391 kB / 440 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002575/0.3548, allocations: 176.3 kB / 440.2 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.397e-05/0.3549, allocations: 50.08 kB / 440.2 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.137e-06/0.3549, allocations: 0 / 440.2 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.083e-05/0.355, allocations: 40.83 kB / 440.3 MB, free: 35.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 9.32e-07/0.355, allocations: 0 / 440.3 MB, free: 35.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006932/0.3557, allocations: 441.5 kB / 440.7 MB, free: 35.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.335e-05/0.3557, allocations: 54.19 kB / 440.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.3558, allocations: 157 kB / 440.9 MB, free: 35.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.3558, allocations: 33.64 kB / 440.9 MB, free: 35.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.222e-05/0.3559, allocations: 109.4 kB / 441 MB, free: 35.19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.744e-05/0.3559, allocations: 48.14 kB / 441.1 MB, free: 35.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.736e-05/0.356, allocations: 19.91 kB / 441.1 MB, free: 35.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.002e-05/0.356, allocations: 329 kB / 441.4 MB, free: 34.81 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.907e-05/0.3561, allocations: 31.91 kB / 441.5 MB, free: 34.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.159e-05/0.3561, allocations: 59.31 kB / 441.5 MB, free: 34.76 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003954/0.3565, allocations: 171.8 kB / 441.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3566, allocations: 11.25 kB / 441.7 MB, free: 34.67 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.0004481/0.357, allocations: 344.8 kB / 442 MB, free: 34.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.357, allocations: 5.031 kB / 442 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.357, allocations: 2.938 kB / 442 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001627/0.3572, allocations: 50.22 kB / 442.1 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.437e-05/0.3573, allocations: 26.16 kB / 442.1 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001636/0.359, allocations: 4.24 MB / 446.3 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.874e-05/0.3591, allocations: 3.031 kB / 446.4 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.3591, allocations: 7 kB / 446.4 MB, free: 30 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 0.0001018/0.3592, allocations: 136.4 kB / 446.5 MB, free: 29.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.258e-05/0.3592, allocations: 13.66 kB / 446.5 MB, free: 29.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.759e-05/0.3593, allocations: 19.03 kB / 446.5 MB, free: 29.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.3593, allocations: 0 / 446.5 MB, free: 29.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.3593, allocations: 0 / 446.5 MB, free: 29.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3593, allocations: 0 / 446.5 MB, free: 29.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004164/0.3597, allocations: 465.4 kB / 447 MB, free: 29.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3597, allocations: 2.875 kB / 447 MB, free: 29.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.435e-05/0.3598, allocations: 21.47 kB / 447 MB, free: 29.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000113/0.3599, allocations: 36.77 kB / 447 MB, free: 29.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.36, allocations: 6.469 kB / 447 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007672/0.3607, allocations: 1.453 MB / 448.5 MB, free: 27.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3608, allocations: 11.03 kB / 448.5 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002529/0.361, allocations: 279 kB / 448.8 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.383e-05/0.3611, allocations: 90.55 kB / 448.9 MB, free: 27.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.618e-05/0.3611, allocations: 0 / 448.9 MB, free: 27.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.407e-05/0.3612, allocations: 10.66 kB / 448.9 MB, free: 27.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.412e-05/0.3612, allocations: 17.09 kB / 448.9 MB, free: 27.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.744e-06/0.3612, allocations: 6.281 kB / 448.9 MB, free: 27.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.71e-05/0.3613, allocations: 116.5 kB / 449 MB, free: 27.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3613, allocations: 3.656 kB / 449 MB, free: 27.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003666/0.3617, allocations: 26.88 kB / 449 MB, free: 27.57 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 8.547e-05/0.3618, allocations: 100.2 kB / 449.1 MB, free: 27.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003319/0.3621, allocations: 317.8 kB / 449.5 MB, free: 27.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3621, allocations: 4 kB / 449.5 MB, free: 27.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.3622, allocations: 159 kB / 449.6 MB, free: 27.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.3626, allocations: 17.12 kB / 449.6 MB, free: 27.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008048/0.3634, allocations: 0.607 MB / 450.2 MB, free: 26.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000128/0.3635, allocations: 0.7079 MB / 450.9 MB, free: 25.96 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.517e-05/0.3636, allocations: 11.98 kB / 451 MB, free: 25.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.238e-05/0.3636, allocations: 12.75 kB / 451 MB, free: 25.95 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3636, allocations: 0 / 451 MB, free: 25.95 MB / 350.1 MB Notification: Performance of Templates: time 0.003847/0.3675, allocations: 1.461 MB / 452.4 MB, free: 25.85 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)