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.001113/0.001113, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001566/0.001566, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.384/1.384, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2584/0.2584, allocations: 22.35 MB / 312.7 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 63.84 kB / 378.7 MB, free: 12.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.3194, allocations: 54.94 MB / 433.7 MB, free: 38.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.002497/0.3219, allocations: 1.676 MB / 435.3 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006234/0.3226, allocations: 461.5 kB / 435.8 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.374e-05/0.3227, allocations: 0 / 435.8 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.324e-05/0.3227, allocations: 10.84 kB / 435.8 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001744/0.3229, allocations: 37.36 kB / 435.8 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.771e-05/0.323, allocations: 24.91 kB / 435.9 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001483/0.3232, allocations: 121.8 kB / 436 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.3233, allocations: 38.05 kB / 436 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.437e-05/0.3234, allocations: 55.97 kB / 436.1 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.889e-05/0.3235, allocations: 48.73 kB / 436.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.3235, allocations: 7.594 kB / 436.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.014e-05/0.3235, allocations: 9.531 kB / 436.1 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.425e-05/0.3236, allocations: 25.2 kB / 436.2 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.805e-05/0.3236, allocations: 56.55 kB / 436.2 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001097/0.3237, allocations: 105.5 kB / 436.3 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.3237, allocations: 0 / 436.3 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3237, allocations: 0 / 436.3 MB, free: 37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.3238, allocations: 0 / 436.3 MB, free: 37 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.0005327/0.3243, allocations: 424 kB / 436.7 MB, free: 36.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.3243, allocations: 10.56 kB / 436.7 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.359e-05/0.3244, allocations: 18.84 kB / 436.8 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001827/0.3246, allocations: 207.8 kB / 437 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.3246, allocations: 6.594 kB / 437 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.3246, allocations: 13.28 kB / 437 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001257/0.3248, allocations: 75.56 kB / 437.1 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.3248, allocations: 0 / 437.1 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.3248, allocations: 10.06 kB / 437.1 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.3248, allocations: 3.938 kB / 437.1 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.624e-05/0.3249, allocations: 39.11 kB / 437.1 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005091/0.3254, allocations: 394.6 kB / 437.5 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000263/0.3257, allocations: 175.9 kB / 437.7 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.548e-05/0.3257, allocations: 46.39 kB / 437.7 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.121e-05/0.3258, allocations: 2.656 kB / 437.7 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.796e-05/0.3258, allocations: 30.56 kB / 437.7 MB, free: 35.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.263e-06/0.3258, allocations: 0 / 437.7 MB, free: 35.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006933/0.3265, allocations: 440.7 kB / 438.2 MB, free: 35.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.078e-05/0.3265, allocations: 59.34 kB / 438.2 MB, free: 35.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.3266, allocations: 166 kB / 438.4 MB, free: 35.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.769e-06/0.3267, allocations: 29.7 kB / 438.4 MB, free: 35.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.464e-05/0.3267, allocations: 113.5 kB / 438.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.441e-05/0.3267, allocations: 42.64 kB / 438.6 MB, free: 35.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.285e-05/0.3268, allocations: 31.5 kB / 438.6 MB, free: 35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.84e-05/0.3268, allocations: 320.7 kB / 438.9 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.917e-05/0.3269, allocations: 33.36 kB / 438.9 MB, free: 34.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.667e-05/0.327, allocations: 60.03 kB / 439 MB, free: 34.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003879/0.3274, allocations: 179.1 kB / 439.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3274, allocations: 6.625 kB / 439.2 MB, free: 34.54 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.0004578/0.3278, allocations: 343.2 kB / 439.5 MB, free: 34.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.3278, allocations: 4.812 kB / 439.5 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.3279, allocations: 0 / 439.5 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001785/0.328, allocations: 56.56 kB / 439.6 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.46e-05/0.3281, allocations: 21.42 kB / 439.6 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001781/0.3299, allocations: 4.635 MB / 444.2 MB, free: 29.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.607e-05/0.33, allocations: 8.062 kB / 444.2 MB, free: 29.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.33, allocations: 9.812 kB / 444.3 MB, free: 29.47 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 9.228e-05/0.3301, allocations: 137.7 kB / 444.4 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.255e-05/0.3302, allocations: 13.47 kB / 444.4 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.356e-05/0.3302, allocations: 16.66 kB / 444.4 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.3302, allocations: 2.844 kB / 444.4 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.3302, allocations: 0 / 444.4 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3302, allocations: 7.469 kB / 444.4 MB, free: 29.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000419/0.3307, allocations: 452.6 kB / 444.9 MB, free: 28.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3307, allocations: 2.75 kB / 444.9 MB, free: 28.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.86e-05/0.3308, allocations: 17.88 kB / 444.9 MB, free: 28.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001197/0.3309, allocations: 54.09 kB / 444.9 MB, free: 28.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.3309, allocations: 3.328 kB / 445 MB, free: 28.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007986/0.3317, allocations: 1.62 MB / 446.6 MB, free: 27.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.3317, allocations: 3.938 kB / 446.6 MB, free: 27.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002537/0.332, allocations: 284.3 kB / 446.9 MB, free: 27.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.594e-05/0.3321, allocations: 90.67 kB / 446.9 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.753e-05/0.3321, allocations: 0 / 446.9 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.255e-05/0.3322, allocations: 6.938 kB / 446.9 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.158e-05/0.3322, allocations: 6.453 kB / 447 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.523e-06/0.3322, allocations: 10.62 kB / 447 MB, free: 26.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.594e-05/0.3323, allocations: 125.4 kB / 447.1 MB, free: 26.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3323, allocations: 0 / 447.1 MB, free: 26.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003719/0.3327, allocations: 29.41 kB / 447.1 MB, free: 26.87 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.34e-05/0.3328, allocations: 99.56 kB / 447.2 MB, free: 26.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003362/0.3331, allocations: 320.8 kB / 447.5 MB, free: 26.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.3331, allocations: 128 / 447.5 MB, free: 26.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001171/0.3332, allocations: 163.9 kB / 447.7 MB, free: 26.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/0.3335, allocations: 19.66 kB / 447.7 MB, free: 26.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007541/0.3343, allocations: 0.5101 MB / 448.2 MB, free: 26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001217/0.3344, allocations: 0.7077 MB / 448.9 MB, free: 25.31 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.448e-05/0.3345, allocations: 13.09 kB / 448.9 MB, free: 25.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.895e-05/0.3345, allocations: 15.88 kB / 449 MB, free: 25.3 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3345, allocations: 0 / 449 MB, free: 25.3 MB / 350.1 MB Notification: Performance of Templates: time 0.003727/0.3383, allocations: 1.586 MB / 450.5 MB, free: 25.19 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)