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.0008479/0.0008479, allocations: 99.5 kB / 16.02 MB, free: 76 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.001023/0.001023, allocations: 186.5 kB / 16.92 MB, free: 6.703 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.318/1.318, allocations: 223.3 MB / 241 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.2249/0.2249, allocations: 22.34 MB / 314.4 MB, free: 13.19 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000351/0.0003508, allocations: 11.98 kB / 381.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2771, allocations: 55.97 MB / 437.2 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_1stOrder_prescribed_P): time 0.001476/0.2786, allocations: 1.385 MB / 438.6 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005838/0.2792, allocations: 449.7 kB / 439 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.272e-05/0.2793, allocations: 3.062 kB / 439 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.904e-05/0.2793, allocations: 7.219 kB / 439 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002025/0.2795, allocations: 29.47 kB / 439 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.107e-05/0.2796, allocations: 22.56 kB / 439.1 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001345/0.2798, allocations: 122.7 kB / 439.2 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.2799, allocations: 28.36 kB / 439.2 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.124e-05/0.28, allocations: 42.98 kB / 439.2 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.59e-05/0.2801, allocations: 54.56 kB / 439.3 MB, free: 37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.779e-05/0.2801, allocations: 5.594 kB / 439.3 MB, free: 37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.442e-05/0.2801, allocations: 6.656 kB / 439.3 MB, free: 37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.082e-05/0.2801, allocations: 18.97 kB / 439.3 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.804e-05/0.2802, allocations: 72 kB / 439.4 MB, free: 36.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.12e-05/0.2803, allocations: 69.17 kB / 439.5 MB, free: 36.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2803, allocations: 0 / 439.5 MB, free: 36.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.2803, allocations: 0 / 439.5 MB, free: 36.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.86e-06/0.2803, allocations: 2.719 kB / 439.5 MB, free: 36.91 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.0004555/0.2808, allocations: 420.2 kB / 439.9 MB, free: 36.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.2808, allocations: 9.156 kB / 439.9 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.792e-05/0.2809, allocations: 19.02 kB / 439.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.281, allocations: 210.1 kB / 440.1 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.281, allocations: 12.06 kB / 440.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.304e-05/0.2811, allocations: 5.625 kB / 440.1 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001281/0.2812, allocations: 84.92 kB / 440.2 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.2812, allocations: 0 / 440.2 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.2812, allocations: 2.844 kB / 440.2 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.2812, allocations: 4 kB / 440.2 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.874e-05/0.2813, allocations: 43.45 kB / 440.3 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004887/0.2818, allocations: 387.7 kB / 440.6 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002337/0.2821, allocations: 173.1 kB / 440.8 MB, free: 35.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.994e-05/0.2821, allocations: 46.42 kB / 440.9 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.23e-05/0.2822, allocations: 0 / 440.9 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.251e-05/0.2822, allocations: 36.44 kB / 440.9 MB, free: 35.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 9.32e-07/0.2822, allocations: 0 / 440.9 MB, free: 35.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006265/0.2828, allocations: 455 kB / 441.3 MB, free: 35.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.271e-05/0.2828, allocations: 54.38 kB / 441.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.283, allocations: 159.3 kB / 441.5 MB, free: 35.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.283, allocations: 25.7 kB / 441.6 MB, free: 35.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.258e-05/0.283, allocations: 113.4 kB / 441.7 MB, free: 34.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.489e-05/0.2831, allocations: 37.69 kB / 441.7 MB, free: 34.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.65e-05/0.2831, allocations: 22.67 kB / 441.7 MB, free: 34.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.347e-05/0.2831, allocations: 328.8 kB / 442.1 MB, free: 34.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.686e-05/0.2832, allocations: 32.55 kB / 442.1 MB, free: 34.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.82e-05/0.2833, allocations: 57.56 kB / 442.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004098/0.2837, allocations: 180.2 kB / 442.3 MB, free: 34.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.2837, allocations: 3.938 kB / 442.3 MB, free: 34.46 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.0004332/0.2841, allocations: 353.9 kB / 442.7 MB, free: 34.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.2842, allocations: 6.656 kB / 442.7 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.2842, allocations: 0 / 442.7 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001558/0.2843, allocations: 47.98 kB / 442.7 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.506e-05/0.2844, allocations: 30.09 kB / 442.8 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001523/0.286, allocations: 4.246 MB / 447 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.682e-05/0.2861, allocations: 0 / 447 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-06/0.2861, allocations: 10.25 kB / 447 MB, free: 29.78 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.592e-05/0.2862, allocations: 125.7 kB / 447.1 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.257e-05/0.2862, allocations: 19.25 kB / 447.2 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.638e-05/0.2862, allocations: 16 kB / 447.2 MB, free: 29.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.2862, allocations: 2.938 kB / 447.2 MB, free: 29.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.2862, allocations: 0 / 447.2 MB, free: 29.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.2862, allocations: 0 / 447.2 MB, free: 29.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004074/0.2867, allocations: 461.2 kB / 447.6 MB, free: 29.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.2867, allocations: 0 / 447.6 MB, free: 29.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.562e-05/0.2868, allocations: 23.42 kB / 447.6 MB, free: 29.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001078/0.2869, allocations: 36.3 kB / 447.7 MB, free: 29.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.2869, allocations: 2.875 kB / 447.7 MB, free: 29.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000706/0.2876, allocations: 1.457 MB / 449.1 MB, free: 27.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.2876, allocations: 2.656 kB / 449.1 MB, free: 27.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002481/0.2879, allocations: 289.8 kB / 449.4 MB, free: 27.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.805e-05/0.2879, allocations: 83.77 kB / 449.5 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.288, allocations: 10.17 kB / 449.5 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.348e-05/0.2881, allocations: 10.72 kB / 449.5 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.13e-05/0.2881, allocations: 10.22 kB / 449.5 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.2881, allocations: 2.75 kB / 449.5 MB, free: 27.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.551e-05/0.2882, allocations: 119.4 kB / 449.7 MB, free: 27.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2882, allocations: 0 / 449.7 MB, free: 27.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000372/0.2885, allocations: 34.91 kB / 449.7 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 (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.782e-05/0.2886, allocations: 101.9 kB / 449.8 MB, free: 27.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003014/0.2889, allocations: 317.1 kB / 450.1 MB, free: 27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2889, allocations: 0 / 450.1 MB, free: 27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.2891, allocations: 163.5 kB / 450.3 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.0002977/0.2894, allocations: 13.33 kB / 450.3 MB, free: 26.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000761/0.2901, allocations: 0.6272 MB / 450.9 MB, free: 26.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000111/0.2903, allocations: 0.7129 MB / 451.6 MB, free: 25.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.296e-05/0.2903, allocations: 13.34 kB / 451.6 MB, free: 25.71 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2903, allocations: 3.938 kB / 451.6 MB, free: 25.71 MB / 350.1 MB Notification: Performance of Templates: time 0.003087/0.2934, allocations: 2.143 MB / 453.8 MB, free: 25.58 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)