Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_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_fixed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 112.5 kB / 16.37 MB, free: 6 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.001732/0.001732, allocations: 197.6 kB / 17.31 MB, free: 5.613 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.352/1.352, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1233/0.1233, allocations: 22.32 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 61 kB / 380.1 MB, free: 42.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1037, allocations: 54.97 MB / 435.1 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.002625/0.1064, allocations: 1.597 MB / 436.7 MB, free: 12.74 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006315/0.107, allocations: 443.1 kB / 437.1 MB, free: 12.31 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.919e-05/0.1071, allocations: 0 / 437.1 MB, free: 12.31 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.107e-05/0.1072, allocations: 11.86 kB / 437.1 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001699/0.1073, allocations: 31.78 kB / 437.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.633e-05/0.1074, allocations: 23.97 kB / 437.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001169/0.1075, allocations: 107.5 kB / 437.3 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.1077, allocations: 24 kB / 437.3 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.1078, allocations: 43.78 kB / 437.4 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.791e-05/0.1079, allocations: 51.75 kB / 437.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.009e-05/0.1079, allocations: 8 kB / 437.4 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.632e-05/0.1079, allocations: 8 kB / 437.4 MB, free: 12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.572e-05/0.108, allocations: 19.92 kB / 437.5 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.302e-05/0.108, allocations: 51.73 kB / 437.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001207/0.1082, allocations: 91.62 kB / 437.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1082, allocations: 0 / 437.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1082, allocations: 0 / 437.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.1082, allocations: 0 / 437.6 MB, free: 11.84 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0005416/0.1087, allocations: 403.1 kB / 438 MB, free: 11.4 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.1088, allocations: 8.031 kB / 438 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.117e-05/0.1088, allocations: 12.75 kB / 438 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001541/0.109, allocations: 196.2 kB / 438.2 MB, free: 11.15 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.109, allocations: 8.375 kB / 438.2 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.506e-05/0.109, allocations: 8.312 kB / 438.2 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001311/0.1092, allocations: 77.61 kB / 438.3 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.1092, allocations: 0 / 438.3 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.1092, allocations: 4 kB / 438.3 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.1092, allocations: 0 / 438.3 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.941e-05/0.1093, allocations: 43.97 kB / 438.3 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005246/0.1098, allocations: 372.5 kB / 438.7 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002574/0.1101, allocations: 86.58 kB / 438.8 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.409e-05/0.1102, allocations: 40.84 kB / 438.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.354e-05/0.1102, allocations: 4 kB / 438.8 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.801e-05/0.1102, allocations: 34.5 kB / 438.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.253e-06/0.1102, allocations: 4 kB / 438.9 MB, free: 10.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007006/0.1109, allocations: 415.6 kB / 439.3 MB, free: 9.945 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.39e-05/0.111, allocations: 51.41 kB / 439.3 MB, free: 9.883 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.1111, allocations: 148.2 kB / 439.5 MB, free: 9.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.1111, allocations: 29.8 kB / 439.5 MB, free: 9.695 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.45e-05/0.1112, allocations: 115.8 kB / 439.6 MB, free: 9.578 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.774e-05/0.1112, allocations: 39.44 kB / 439.6 MB, free: 9.539 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.459e-05/0.1113, allocations: 29.72 kB / 439.7 MB, free: 9.504 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.86e-05/0.1114, allocations: 322.8 kB / 440 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.04e-05/0.1114, allocations: 27.98 kB / 440 MB, free: 9.152 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.186e-05/0.1115, allocations: 49.09 kB / 440.1 MB, free: 9.098 MB / 318.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0004276/0.1119, allocations: 255.2 kB / 440.3 MB, free: 8.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1119, allocations: 0 / 440.3 MB, free: 8.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002347/0.1122, allocations: 158.2 kB / 440.5 MB, free: 8.656 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.1122, allocations: 8 kB / 440.5 MB, free: 8.648 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.1122, allocations: 0 / 440.5 MB, free: 8.648 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001479/0.1124, allocations: 40.81 kB / 440.5 MB, free: 8.605 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.463e-05/0.1125, allocations: 20 kB / 440.5 MB, free: 8.586 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001294/0.1138, allocations: 1.611 MB / 442.1 MB, free: 6.836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.221e-05/0.1139, allocations: 4 kB / 442.2 MB, free: 6.832 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.1139, allocations: 4 kB / 442.2 MB, free: 6.828 MB / 318.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 Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: G.Pm = G.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 (13): * 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: 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 0.0001063/0.114, allocations: 135.7 kB / 442.3 MB, free: 6.688 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.269e-05/0.114, allocations: 11.91 kB / 442.3 MB, free: 6.676 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.337e-05/0.1141, allocations: 8.719 kB / 442.3 MB, free: 6.668 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.1141, allocations: 4 kB / 442.3 MB, free: 6.664 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.1141, allocations: 4 kB / 442.3 MB, free: 6.66 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1141, allocations: 0 / 442.3 MB, free: 6.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005035/0.1146, allocations: 432.8 kB / 442.7 MB, free: 6.172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1146, allocations: 3.938 kB / 442.7 MB, free: 6.168 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.299e-05/0.1147, allocations: 16 kB / 442.8 MB, free: 6.152 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001335/0.1148, allocations: 48.81 kB / 442.8 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.1149, allocations: 0 / 442.8 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001198/0.1161, allocations: 1.62 MB / 444.4 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1161, allocations: 3.938 kB / 444.4 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003245/0.1164, allocations: 281.9 kB / 444.7 MB, free: 4.035 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.491e-05/0.1165, allocations: 85.02 kB / 444.8 MB, free: 3.934 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.915e-05/0.1165, allocations: 4 kB / 444.8 MB, free: 3.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.588e-05/0.1166, allocations: 4 kB / 444.8 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.359e-05/0.1166, allocations: 8.031 kB / 444.8 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.283e-06/0.1167, allocations: 4 kB / 444.8 MB, free: 3.914 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.525e-05/0.1168, allocations: 119.2 kB / 444.9 MB, free: 3.797 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1168, allocations: 0 / 444.9 MB, free: 3.797 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003559/0.1171, allocations: 24 kB / 444.9 MB, free: 3.773 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (G.thetap,G.deltag,G.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 (8): * Single equations (assignments): 7 * 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 0.00011/0.1172, allocations: 113.2 kB / 445.1 MB, free: 3.656 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003477/0.1176, allocations: 193.6 kB / 445.2 MB, free: 3.457 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1176, allocations: 0 / 445.2 MB, free: 3.457 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001678/0.1178, allocations: 162.7 kB / 445.4 MB, free: 3.285 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002468/0.118, allocations: 14.97 kB / 445.4 MB, free: 3.273 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008656/0.1189, allocations: 465.4 kB / 445.9 MB, free: 2.785 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.1192, allocations: 0.7045 MB / 446.6 MB, free: 2.055 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.747e-05/0.1192, allocations: 8.891 kB / 446.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.04e-05/0.1192, allocations: 11.44 kB / 446.6 MB, free: 2.031 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1193, allocations: 0 / 446.6 MB, free: 2.031 MB / 318.1 MB Notification: Performance of Templates: time 0.00364/0.1229, allocations: 1.366 MB / 448 MB, free: 0.6641 MB / 318.1 MB make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.makefile (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.sim & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe 2>&1)