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.005346/0.005346, allocations: 96.31 kB / 15.73 MB, free: 6.039 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.001192/0.001192, allocations: 195.6 kB / 16.67 MB, free: 5.965 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2122/0.2122, allocations: 22.35 MB / 312.9 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 60 kB / 435 MB, free: 34.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1036, allocations: 54.96 MB / 489.9 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.001884/0.1055, allocations: 1.49 MB / 491.4 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004758/0.106, allocations: 419.2 kB / 491.8 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.16e-05/0.1061, allocations: 0 / 491.8 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.824e-05/0.1061, allocations: 3.938 kB / 491.8 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001593/0.1063, allocations: 27.83 kB / 491.8 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.224e-05/0.1064, allocations: 7.984 kB / 491.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.447e-05/0.1064, allocations: 75.69 kB / 491.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.653e-05/0.1065, allocations: 4 kB / 491.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.796e-05/0.1066, allocations: 35.8 kB / 492 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.176e-05/0.1067, allocations: 31.84 kB / 492 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.014e-05/0.1067, allocations: 4 kB / 492 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.471e-05/0.1067, allocations: 4 kB / 492 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.984e-05/0.1068, allocations: 19.91 kB / 492 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.207e-05/0.1068, allocations: 27.86 kB / 492.1 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.105e-05/0.1069, allocations: 51.69 kB / 492.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.1069, allocations: 0 / 492.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1069, allocations: 0 / 492.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.1069, allocations: 0 / 492.1 MB, free: 1.133 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.0004293/0.1073, allocations: 379.2 kB / 492.5 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.039e-05/0.1074, allocations: 8.031 kB / 492.5 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.428e-05/0.1074, allocations: 8.891 kB / 492.5 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001021/0.1075, allocations: 192.2 kB / 492.7 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.051e-05/0.1075, allocations: 384 / 492.7 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.962e-05/0.1076, allocations: 12.31 kB / 492.7 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.606e-05/0.1077, allocations: 65.55 kB / 492.8 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.1077, allocations: 0 / 492.8 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.1077, allocations: 4 kB / 492.8 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.1077, allocations: 4 kB / 492.8 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.621e-05/0.1078, allocations: 23.98 kB / 492.8 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004099/0.1082, allocations: 316.6 kB / 493.1 MB, free: 0 / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002698/0.1085, allocations: 78.55 kB / 493.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.367e-05/0.1085, allocations: 41.06 kB / 493.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.1086, allocations: 0 / 493.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.1086, allocations: 34.56 kB / 493.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 5.34e-06/0.1086, allocations: 7.984 kB / 493.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.000807/0.1094, allocations: 383 kB / 493.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.126e-05/0.1095, allocations: 51.41 kB / 493.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001495/0.1096, allocations: 129.6 kB / 493.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.1097, allocations: 29.7 kB / 493.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.356e-05/0.1097, allocations: 99.98 kB / 493.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.287e-05/0.1098, allocations: 43.67 kB / 494 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.112e-05/0.1099, allocations: 33.64 kB / 494 MB, free: 14.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.11, allocations: 318.8 kB / 494.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.984e-05/0.1101, allocations: 24.73 kB / 494.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.039e-05/0.1102, allocations: 42.56 kB / 494.4 MB, free: 14.58 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0006235/0.1108, allocations: 226.5 kB / 494.6 MB, free: 14.33 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1109, allocations: 3.938 kB / 494.6 MB, free: 14.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003532/0.1112, allocations: 138.4 kB / 494.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.1113, allocations: 4 kB / 494.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.1113, allocations: 4 kB / 494.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002138/0.1115, allocations: 28.83 kB / 494.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.1117, allocations: 31.86 kB / 494.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001872/0.1136, allocations: 1.576 MB / 496.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.1137, allocations: 4 kB / 496.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.1137, allocations: 8 kB / 496.4 MB, free: 12.38 MB / 366.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.0001605/0.1139, allocations: 122.6 kB / 496.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.296e-05/0.114, allocations: 11.89 kB / 496.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.78e-05/0.114, allocations: 8.375 kB / 496.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.114, allocations: 4 kB / 496.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.114, allocations: 4.094 kB / 496.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.114, allocations: 3.984 kB / 496.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006408/0.1147, allocations: 384 kB / 496.9 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1147, allocations: 0 / 496.9 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000132/0.1149, allocations: 19.98 kB / 496.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001772/0.115, allocations: 36.86 kB / 497 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.1151, allocations: 0 / 497 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001608/0.1167, allocations: 1.576 MB / 498.6 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.1167, allocations: 3.938 kB / 498.6 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004267/0.1172, allocations: 241.2 kB / 498.8 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.275e-05/0.1172, allocations: 93.19 kB / 498.9 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.82e-05/0.1173, allocations: 12.03 kB / 498.9 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001499/0.1174, allocations: 3.938 kB / 498.9 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.609e-05/0.1175, allocations: 8 kB / 498.9 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.826e-06/0.1175, allocations: 0 / 498.9 MB, free: 9.617 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001185/0.1176, allocations: 103.2 kB / 499 MB, free: 9.516 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1177, allocations: 0 / 499 MB, free: 9.516 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006387/0.1183, allocations: 24 kB / 499 MB, free: 9.492 MB / 366.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.000141/0.1185, allocations: 107.2 kB / 499.1 MB, free: 9.379 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004702/0.119, allocations: 185.3 kB / 499.3 MB, free: 9.188 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.042e-06/0.119, allocations: 0 / 499.3 MB, free: 9.188 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002236/0.1192, allocations: 154.5 kB / 499.5 MB, free: 9.023 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003998/0.1196, allocations: 11.94 kB / 499.5 MB, free: 9.012 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/0.1209, allocations: 419.8 kB / 499.9 MB, free: 8.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.1213, allocations: 0.7001 MB / 0.4889 GB, free: 7.844 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.485e-05/0.1214, allocations: 8.547 kB / 0.4889 GB, free: 7.836 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.426e-05/0.1214, allocations: 11.44 kB / 0.4889 GB, free: 7.824 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1214, allocations: 0 / 0.4889 GB, free: 7.824 MB / 366.1 MB Notification: Performance of Templates: time 0.006029/0.1275, allocations: 1.175 MB / 0.49 GB, free: 6.648 MB / 366.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)