Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_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_order0_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001581/0.001581, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001988/0.001988, allocations: 193.8 kB / 16.14 MB, free: 6.707 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.393/1.393, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2197/0.2197, allocations: 22.34 MB / 312.3 MB, free: 12.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 71.83 kB / 378 MB, free: 13.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2866, allocations: 54.93 MB / 433 MB, free: 38.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002639/0.2893, allocations: 1.536 MB / 434.5 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006569/0.29, allocations: 415.5 kB / 434.9 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.931e-05/0.2901, allocations: 0 / 434.9 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.703e-05/0.2901, allocations: 11.41 kB / 434.9 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001984/0.2904, allocations: 15.22 kB / 434.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.873e-05/0.2904, allocations: 14 kB / 435 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.632e-05/0.2905, allocations: 70.09 kB / 435 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.713e-05/0.2906, allocations: 6.469 kB / 435 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.2907, allocations: 40.84 kB / 435.1 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.396e-05/0.2908, allocations: 33.67 kB / 435.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.885e-05/0.2909, allocations: 3 kB / 435.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.639e-05/0.2909, allocations: 2.938 kB / 435.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.06e-05/0.2909, allocations: 18.17 kB / 435.1 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.813e-05/0.2909, allocations: 23.8 kB / 435.2 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.796e-05/0.291, allocations: 44.3 kB / 435.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.291, allocations: 0 / 435.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.2911, allocations: 0 / 435.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.411e-06/0.2911, allocations: 0 / 435.2 MB, free: 37.16 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000491/0.2916, allocations: 378.8 kB / 435.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.2916, allocations: 12.69 kB / 435.6 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.166e-05/0.2917, allocations: 14.72 kB / 435.6 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.2918, allocations: 188.9 kB / 435.8 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.2918, allocations: 3.594 kB / 435.8 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.465e-05/0.2918, allocations: 7.219 kB / 435.8 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001132/0.292, allocations: 62.39 kB / 435.9 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.292, allocations: 0 / 435.9 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.292, allocations: 7.984 kB / 435.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.292, allocations: 2.938 kB / 435.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.285e-05/0.2921, allocations: 24.95 kB / 435.9 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004601/0.2925, allocations: 319.5 kB / 436.2 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002483/0.2928, allocations: 86.53 kB / 436.3 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.904e-05/0.2929, allocations: 30.53 kB / 436.3 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.2929, allocations: 2.875 kB / 436.3 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.602e-05/0.2929, allocations: 37.8 kB / 436.4 MB, free: 36.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.213e-06/0.2929, allocations: 0 / 436.4 MB, free: 36.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006488/0.2936, allocations: 383.3 kB / 436.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.528e-05/0.2936, allocations: 54.16 kB / 436.8 MB, free: 35.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.967e-05/0.2937, allocations: 133.2 kB / 436.9 MB, free: 35.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.2937, allocations: 37.64 kB / 436.9 MB, free: 35.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.968e-05/0.2938, allocations: 109.3 kB / 437.1 MB, free: 35.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.293e-05/0.2938, allocations: 32.56 kB / 437.1 MB, free: 35.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.08e-05/0.2938, allocations: 30.25 kB / 437.1 MB, free: 35.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.947e-05/0.2939, allocations: 321 kB / 437.4 MB, free: 35.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.135e-05/0.2939, allocations: 23.81 kB / 437.5 MB, free: 35.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.751e-05/0.294, allocations: 43.64 kB / 437.5 MB, free: 35.04 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.000381/0.2944, allocations: 225.6 kB / 437.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.2944, allocations: 4 kB / 437.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002013/0.2946, allocations: 138.6 kB / 437.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.2946, allocations: 6.625 kB / 437.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.2946, allocations: 0 / 437.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001464/0.2948, allocations: 32.19 kB / 437.9 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.008e-05/0.2949, allocations: 25.47 kB / 437.9 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/0.2959, allocations: 1.416 MB / 439.3 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.401e-05/0.296, allocations: 4.094 kB / 439.3 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.778e-06/0.296, allocations: 9.094 kB / 439.3 MB, free: 33.36 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: Pm = Pcmd. 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 (12): * Single equations (assignments): 11 * 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 prepare postOptimizeDAE: time 9.166e-05/0.2961, allocations: 118.9 kB / 439.5 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.26e-05/0.2961, allocations: 10.09 kB / 439.5 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.015e-05/0.2961, allocations: 12.31 kB / 439.5 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.2962, allocations: 3.656 kB / 439.5 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.2962, allocations: 4 kB / 439.5 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.2962, allocations: 0 / 439.5 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003588/0.2965, allocations: 380.9 kB / 439.9 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.2965, allocations: 0 / 439.9 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.051e-05/0.2966, allocations: 17.94 kB / 439.9 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001153/0.2968, allocations: 37.92 kB / 439.9 MB, free: 32.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.2968, allocations: 2.938 kB / 439.9 MB, free: 32.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007364/0.2975, allocations: 1.417 MB / 441.3 MB, free: 31.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.2975, allocations: 4 kB / 441.3 MB, free: 31.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002214/0.2978, allocations: 243.9 kB / 441.6 MB, free: 31.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.664e-05/0.2978, allocations: 84.11 kB / 441.7 MB, free: 31.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.2978, allocations: 6.938 kB / 441.7 MB, free: 31.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.94e-05/0.2979, allocations: 4 kB / 441.7 MB, free: 31.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.134e-05/0.2979, allocations: 21.11 kB / 441.7 MB, free: 31.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.6e-06/0.298, allocations: 0 / 441.7 MB, free: 31.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.541e-05/0.298, allocations: 103.2 kB / 441.8 MB, free: 31.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.298, allocations: 0 / 441.8 MB, free: 31.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003255/0.2983, allocations: 28.81 kB / 441.8 MB, free: 31.04 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (thetap,deltag,wg) * 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 (7): * Single equations (assignments): 6 * 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.483e-05/0.2984, allocations: 103.2 kB / 441.9 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002623/0.2987, allocations: 179 kB / 442.1 MB, free: 30.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2987, allocations: 0 / 442.1 MB, free: 30.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001166/0.2988, allocations: 149.7 kB / 442.2 MB, free: 30.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002404/0.2991, allocations: 8.359 kB / 442.3 MB, free: 30.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000754/0.2998, allocations: 447.3 kB / 442.7 MB, free: 30.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000134/0.3, allocations: 0.7002 MB / 443.4 MB, free: 29.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.945e-05/0.3, allocations: 7.516 kB / 443.4 MB, free: 29.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.926e-05/0.3001, allocations: 12.72 kB / 443.4 MB, free: 29.64 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3001, allocations: 4 kB / 443.4 MB, free: 29.64 MB / 350.1 MB Notification: Performance of Templates: time 0.003376/0.3035, allocations: 1.052 MB / 444.5 MB, free: 29.56 MB / 350.1 MB make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.makefile (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.sim & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1)