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.008678/0.008679, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001155/0.001155, allocations: 196.1 kB / 16.67 MB, free: 5.977 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2539/0.2539, allocations: 22.36 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 61.72 kB / 435 MB, free: 35.05 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1079, allocations: 54.96 MB / 489.9 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.001892/0.1099, allocations: 1.482 MB / 491.4 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004657/0.1103, allocations: 419.2 kB / 491.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.012e-05/0.1104, allocations: 0 / 491.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.456e-05/0.1104, allocations: 7.922 kB / 491.8 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001489/0.1106, allocations: 19.78 kB / 491.8 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.945e-05/0.1106, allocations: 11.98 kB / 491.9 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.29e-05/0.1107, allocations: 71.77 kB / 491.9 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.754e-05/0.1108, allocations: 4 kB / 491.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.291e-05/0.1109, allocations: 43.78 kB / 492 MB, free: 1.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.015e-05/0.111, allocations: 35.83 kB / 492 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.526e-05/0.111, allocations: 4 kB / 492 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.254e-05/0.111, allocations: 4 kB / 492 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.83e-05/0.111, allocations: 7.938 kB / 492 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.219e-05/0.1111, allocations: 35.8 kB / 492.1 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.985e-05/0.1111, allocations: 39.75 kB / 492.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.1111, allocations: 0 / 492.1 MB, free: 1.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1111, allocations: 4 kB / 492.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.1112, allocations: 0 / 492.1 MB, free: 1.156 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.0004022/0.1116, allocations: 387.2 kB / 492.5 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.1116, allocations: 12.03 kB / 492.5 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.136e-05/0.1116, allocations: 8.844 kB / 492.5 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.587e-05/0.1117, allocations: 176.2 kB / 492.7 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.1117, allocations: 8.375 kB / 492.7 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.795e-05/0.1118, allocations: 8.312 kB / 492.7 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.866e-05/0.1119, allocations: 69.59 kB / 492.8 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.1119, allocations: 4 kB / 492.8 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.396e-06/0.1119, allocations: 3.938 kB / 492.8 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1119, allocations: 7.938 kB / 492.8 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.197e-05/0.112, allocations: 27.98 kB / 492.8 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003476/0.1123, allocations: 308.7 kB / 493.1 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002306/0.1125, allocations: 82.48 kB / 493.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.184e-05/0.1126, allocations: 36.94 kB / 493.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/0.1126, allocations: 0 / 493.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.1127, allocations: 30.56 kB / 493.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 7.82e-07/0.1127, allocations: 0 / 493.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006457/0.1133, allocations: 390.9 kB / 493.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.1134, allocations: 59.41 kB / 493.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.469e-05/0.1135, allocations: 132.7 kB / 493.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.222e-05/0.1135, allocations: 25.7 kB / 493.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.752e-05/0.1135, allocations: 96.03 kB / 493.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.53e-05/0.1136, allocations: 39.41 kB / 494 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-05/0.1136, allocations: 29.7 kB / 494 MB, free: 15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.454e-05/0.1137, allocations: 322.8 kB / 494.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.628e-05/0.1138, allocations: 20.11 kB / 494.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.318e-05/0.1138, allocations: 50.48 kB / 494.4 MB, free: 14.59 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003768/0.1142, allocations: 219.6 kB / 494.6 MB, free: 14.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1142, allocations: 4.75 kB / 494.6 MB, free: 14.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000197/0.1144, allocations: 140.3 kB / 494.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.1144, allocations: 5.875 kB / 494.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.1145, allocations: 0 / 494.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001283/0.1146, allocations: 36.84 kB / 494.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.138e-05/0.1147, allocations: 23.98 kB / 494.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001129/0.1158, allocations: 1.579 MB / 496.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.044e-05/0.1159, allocations: 8.031 kB / 496.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-06/0.1159, allocations: 4 kB / 496.4 MB, free: 12.4 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 9.925e-05/0.116, allocations: 130.6 kB / 496.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.855e-05/0.116, allocations: 11.84 kB / 496.5 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.026e-05/0.1161, allocations: 12.38 kB / 496.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.1161, allocations: 0 / 496.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-06/0.1161, allocations: 0 / 496.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.1161, allocations: 0 / 496.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003891/0.1165, allocations: 384.1 kB / 496.9 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1165, allocations: 0 / 496.9 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.507e-05/0.1166, allocations: 19.92 kB / 496.9 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001046/0.1167, allocations: 32.83 kB / 497 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.1167, allocations: 8 kB / 497 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/0.1177, allocations: 1.584 MB / 498.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.1177, allocations: 3.938 kB / 498.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002844/0.118, allocations: 233.2 kB / 498.8 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.938e-05/0.1181, allocations: 92.98 kB / 498.9 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.1181, allocations: 0 / 498.9 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.214e-05/0.1182, allocations: 11.94 kB / 498.9 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.004e-05/0.1182, allocations: 4.172 kB / 498.9 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-06/0.1182, allocations: 8 kB / 498.9 MB, free: 9.633 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.111e-05/0.1183, allocations: 105.5 kB / 499 MB, free: 9.531 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1183, allocations: 0 / 499 MB, free: 9.531 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003051/0.1186, allocations: 28 kB / 499 MB, free: 9.504 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 8.251e-05/0.1187, allocations: 95.25 kB / 499.1 MB, free: 9.402 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002629/0.119, allocations: 182.5 kB / 499.3 MB, free: 9.211 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.119, allocations: 8.125 kB / 499.3 MB, free: 9.203 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001298/0.1191, allocations: 146.5 kB / 499.5 MB, free: 9.047 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.1193, allocations: 11.94 kB / 499.5 MB, free: 9.035 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007285/0.1201, allocations: 423.9 kB / 499.9 MB, free: 8.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002371/0.1203, allocations: 0.6963 MB / 0.4889 GB, free: 7.867 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.776e-05/0.1204, allocations: 8.547 kB / 0.4889 GB, free: 7.859 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.561e-05/0.1204, allocations: 11.44 kB / 0.4889 GB, free: 7.848 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.1204, allocations: 4 kB / 0.4889 GB, free: 7.844 MB / 366.1 MB Notification: Performance of Templates: time 0.003358/0.1238, allocations: 1.222 MB / 0.4901 GB, free: 6.621 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)