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.00114/0.00114, allocations: 115.1 kB / 16.37 MB, free: 5.984 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.001106/0.001106, allocations: 193.5 kB / 17.31 MB, free: 5.602 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.348/1.348, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09376/0.09376, allocations: 22.33 MB / 313.5 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 63.44 kB / 380.1 MB, free: 42.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09883/0.1002, allocations: 54.96 MB / 435.1 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002489/0.1027, allocations: 1.467 MB / 436.6 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006348/0.1034, allocations: 415.2 kB / 437 MB, free: 12.49 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.198e-05/0.1034, allocations: 4 kB / 437 MB, free: 12.49 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.413e-05/0.1035, allocations: 3.938 kB / 437 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000193/0.1037, allocations: 23.84 kB / 437 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.525e-05/0.1037, allocations: 23.89 kB / 437 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.714e-05/0.1038, allocations: 63.72 kB / 437.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.182e-05/0.1039, allocations: 4 kB / 437.1 MB, free: 12.37 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001053/0.104, allocations: 43.78 kB / 437.1 MB, free: 12.33 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.264e-05/0.1041, allocations: 35.83 kB / 437.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.695e-05/0.1042, allocations: 4 kB / 437.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.276e-05/0.1042, allocations: 8 kB / 437.2 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.101e-05/0.1042, allocations: 11.92 kB / 437.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.144e-05/0.1042, allocations: 35.8 kB / 437.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.897e-05/0.1043, allocations: 43.77 kB / 437.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1044, allocations: 3.984 kB / 437.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1044, allocations: 0 / 437.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.802e-06/0.1044, allocations: 0 / 437.3 MB, free: 12.19 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005277/0.1049, allocations: 379.2 kB / 437.6 MB, free: 11.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.105, allocations: 12.03 kB / 437.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.572e-05/0.105, allocations: 8.844 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001514/0.1051, allocations: 184.2 kB / 437.8 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.1052, allocations: 8.375 kB / 437.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.328e-05/0.1052, allocations: 4.375 kB / 437.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001144/0.1053, allocations: 65.61 kB / 437.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.1053, allocations: 0 / 437.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.1053, allocations: 0 / 437.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1054, allocations: 3.938 kB / 437.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.47e-05/0.1054, allocations: 31.92 kB / 438 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004679/0.1059, allocations: 312.7 kB / 438.3 MB, free: 11.06 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000241/0.1062, allocations: 86.56 kB / 438.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.663e-05/0.1062, allocations: 32.84 kB / 438.4 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.655e-05/0.1062, allocations: 4 kB / 438.4 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.1063, allocations: 34.56 kB / 438.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.363e-06/0.1063, allocations: 0 / 438.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006642/0.1069, allocations: 383.6 kB / 438.8 MB, free: 10.45 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.989e-05/0.107, allocations: 59.34 kB / 438.8 MB, free: 10.38 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.1071, allocations: 125 kB / 439 MB, free: 10.25 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.1071, allocations: 33.7 kB / 439 MB, free: 10.21 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.324e-05/0.1072, allocations: 107.8 kB / 439.1 MB, free: 10.1 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.637e-05/0.1072, allocations: 39.45 kB / 439.1 MB, free: 10.06 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.166e-05/0.1073, allocations: 25.72 kB / 439.2 MB, free: 10.03 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.621e-05/0.1074, allocations: 318.8 kB / 439.5 MB, free: 9.711 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.264e-05/0.1074, allocations: 23.98 kB / 439.5 MB, free: 9.688 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.467e-05/0.1075, allocations: 50.56 kB / 439.6 MB, free: 9.629 MB / 318.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003953/0.1079, allocations: 214.1 kB / 439.8 MB, free: 9.395 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.1079, allocations: 4 kB / 439.8 MB, free: 9.391 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002129/0.1081, allocations: 142.3 kB / 439.9 MB, free: 9.242 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.1081, allocations: 4 kB / 439.9 MB, free: 9.238 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.1081, allocations: 0 / 439.9 MB, free: 9.238 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001356/0.1083, allocations: 36.77 kB / 439.9 MB, free: 9.199 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.022e-05/0.1084, allocations: 24.05 kB / 440 MB, free: 9.176 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001144/0.1095, allocations: 1.572 MB / 441.5 MB, free: 7.465 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.83e-05/0.1096, allocations: 4 kB / 441.5 MB, free: 7.461 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.1096, allocations: 4.141 kB / 441.6 MB, free: 7.457 MB / 318.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 0.0001043/0.1097, allocations: 122.5 kB / 441.7 MB, free: 7.328 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.226e-05/0.1098, allocations: 11.84 kB / 441.7 MB, free: 7.316 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.508e-05/0.1098, allocations: 24.42 kB / 441.7 MB, free: 7.293 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1098, allocations: 0 / 441.7 MB, free: 7.293 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-06/0.1098, allocations: 0 / 441.7 MB, free: 7.293 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.1098, allocations: 3.938 kB / 441.7 MB, free: 7.289 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004101/0.1102, allocations: 384 kB / 442.1 MB, free: 6.852 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.1103, allocations: 4 kB / 442.1 MB, free: 6.848 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.237e-05/0.1104, allocations: 15.94 kB / 442.1 MB, free: 6.832 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001131/0.1105, allocations: 36.84 kB / 442.1 MB, free: 6.793 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.1105, allocations: 8.094 kB / 442.2 MB, free: 6.785 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001013/0.1115, allocations: 1.576 MB / 443.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.1115, allocations: 3.938 kB / 443.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002618/0.1118, allocations: 245.1 kB / 444 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.801e-05/0.1119, allocations: 85.05 kB / 444.1 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.1119, allocations: 0 / 444.1 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.112, allocations: 4 kB / 444.1 MB, free: 4.695 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.465e-05/0.112, allocations: 11.97 kB / 444.1 MB, free: 4.684 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.1121, allocations: 4 kB / 444.1 MB, free: 4.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.977e-05/0.1121, allocations: 101.9 kB / 444.2 MB, free: 4.582 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1121, allocations: 4 kB / 444.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003313/0.1125, allocations: 24 kB / 444.2 MB, free: 4.555 MB / 318.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 0.0001066/0.1126, allocations: 99.19 kB / 444.3 MB, free: 4.449 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003013/0.1129, allocations: 186.5 kB / 444.5 MB, free: 4.254 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.1129, allocations: 0 / 444.5 MB, free: 4.254 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000203/0.1131, allocations: 150.6 kB / 444.6 MB, free: 4.094 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002882/0.1134, allocations: 16.11 kB / 444.6 MB, free: 4.078 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.1144, allocations: 419.9 kB / 445.1 MB, free: 3.637 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003554/0.1148, allocations: 0.7 MB / 445.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.38e-05/0.1149, allocations: 4.562 kB / 445.8 MB, free: 2.906 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.652e-05/0.1149, allocations: 15.44 kB / 445.8 MB, free: 2.891 MB / 318.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1149, allocations: 0 / 445.8 MB, free: 2.891 MB / 318.1 MB Notification: Performance of Templates: time 0.003853/0.1188, allocations: 1.156 MB / 446.9 MB, free: 1.734 MB / 318.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 -s gbode -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1)