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.0009483/0.0009483, allocations: 106.9 kB / 15.99 MB, free: 6.355 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.001021/0.001021, allocations: 193 kB / 16.91 MB, free: 6.195 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.202/1.202, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08541/0.08541, allocations: 22.32 MB / 313.1 MB, free: 9.141 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 62.23 kB / 378.8 MB, free: 42.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07105/0.07228, allocations: 54.96 MB / 433.8 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002323/0.07464, allocations: 1.518 MB / 435.3 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005361/0.0752, allocations: 431.2 kB / 435.7 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.744e-05/0.07525, allocations: 0 / 435.7 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.036e-05/0.0753, allocations: 11.86 kB / 435.8 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001353/0.07544, allocations: 15.91 kB / 435.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.026e-05/0.07549, allocations: 7.984 kB / 435.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.103e-05/0.07558, allocations: 75.66 kB / 435.9 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.673e-05/0.07564, allocations: 4 kB / 435.9 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.774e-05/0.07573, allocations: 35.84 kB / 435.9 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.037e-05/0.07581, allocations: 35.83 kB / 435.9 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.517e-05/0.07583, allocations: 4 kB / 435.9 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.245e-05/0.07585, allocations: 4 kB / 435.9 MB, free: 13.46 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.934e-05/0.07587, allocations: 15.92 kB / 436 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.005e-05/0.07591, allocations: 23.86 kB / 436 MB, free: 13.42 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 6.071e-05/0.07597, allocations: 36.17 kB / 436 MB, free: 13.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.07598, allocations: 3.938 kB / 436 MB, free: 13.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.07599, allocations: 4 kB / 436 MB, free: 13.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.076, allocations: 0 / 436 MB, free: 13.38 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.0004498/0.07645, allocations: 371.3 kB / 436.4 MB, free: 12.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.866e-05/0.07649, allocations: 12.03 kB / 436.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.32e-05/0.07653, allocations: 12.84 kB / 436.4 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.07666, allocations: 180.2 kB / 436.6 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.07668, allocations: 8.375 kB / 436.6 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/0.0767, allocations: 8.375 kB / 436.6 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001123/0.07682, allocations: 69.55 kB / 436.7 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.07683, allocations: 0 / 436.7 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-06/0.07685, allocations: 0 / 436.7 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.07686, allocations: 4 kB / 436.7 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.488e-05/0.07691, allocations: 27.98 kB / 436.7 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004047/0.07732, allocations: 316.6 kB / 437 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002157/0.07755, allocations: 82.66 kB / 437.1 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.832e-05/0.07761, allocations: 36.88 kB / 437.1 MB, free: 12.12 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.337e-05/0.07763, allocations: 4.125 kB / 437.1 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.07765, allocations: 30.56 kB / 437.2 MB, free: 12.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.07766, allocations: 4 kB / 437.2 MB, free: 12.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0005893/0.07825, allocations: 391.3 kB / 437.5 MB, free: 11.63 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.527e-05/0.07829, allocations: 51.41 kB / 437.6 MB, free: 11.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.305e-05/0.07839, allocations: 130.1 kB / 437.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.07841, allocations: 25.7 kB / 437.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.41e-05/0.07846, allocations: 103.9 kB / 437.8 MB, free: 11.29 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.378e-05/0.07848, allocations: 35.45 kB / 437.9 MB, free: 11.26 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.265e-05/0.07853, allocations: 33.7 kB / 437.9 MB, free: 11.22 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.547e-05/0.07862, allocations: 318.8 kB / 438.2 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.925e-05/0.07867, allocations: 23.92 kB / 438.2 MB, free: 10.88 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.024e-05/0.07872, allocations: 49.52 kB / 438.3 MB, free: 10.82 MB / 318.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003656/0.07909, allocations: 226.5 kB / 438.5 MB, free: 10.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.11e-07/0.0791, allocations: 0 / 438.5 MB, free: 10.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001982/0.07931, allocations: 134.3 kB / 438.6 MB, free: 10.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.039e-05/0.07933, allocations: 4 kB / 438.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.07934, allocations: 7.984 kB / 438.7 MB, free: 10.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001192/0.07946, allocations: 28.84 kB / 438.7 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.146e-05/0.07955, allocations: 23.92 kB / 438.7 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001048/0.08061, allocations: 1.572 MB / 440.3 MB, free: 8.656 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.83e-05/0.08069, allocations: 12.03 kB / 440.3 MB, free: 8.645 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.0807, allocations: 4 kB / 440.3 MB, free: 8.641 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.0001024/0.08081, allocations: 124.9 kB / 440.4 MB, free: 8.512 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.877e-05/0.08084, allocations: 11.91 kB / 440.4 MB, free: 8.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.147e-05/0.08087, allocations: 16.38 kB / 440.4 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.08088, allocations: 0 / 440.4 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-06/0.08088, allocations: 4 kB / 440.5 MB, free: 8.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.08089, allocations: 0 / 440.5 MB, free: 8.48 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003746/0.08127, allocations: 388.1 kB / 440.8 MB, free: 8.039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.08128, allocations: 0 / 440.8 MB, free: 8.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.924e-05/0.08137, allocations: 19.98 kB / 440.9 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001052/0.08148, allocations: 36.86 kB / 440.9 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.869e-06/0.0815, allocations: 7.938 kB / 440.9 MB, free: 7.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000914/0.08242, allocations: 1.573 MB / 442.5 MB, free: 6.258 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/0.08244, allocations: 7.875 kB / 442.5 MB, free: 6.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002265/0.08267, allocations: 241.1 kB / 442.7 MB, free: 5.992 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.469e-05/0.08271, allocations: 85.05 kB / 442.8 MB, free: 5.891 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.474e-05/0.08273, allocations: 4.031 kB / 442.8 MB, free: 5.887 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.879e-05/0.08283, allocations: 8 kB / 442.8 MB, free: 5.879 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.847e-05/0.08285, allocations: 4 kB / 442.8 MB, free: 5.875 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.662e-06/0.08286, allocations: 3.984 kB / 442.8 MB, free: 5.871 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.778e-05/0.08292, allocations: 111.3 kB / 442.9 MB, free: 5.762 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.08293, allocations: 0 / 442.9 MB, free: 5.762 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003041/0.08324, allocations: 24 kB / 442.9 MB, free: 5.738 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 7.247e-05/0.08331, allocations: 105.4 kB / 443 MB, free: 5.629 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002503/0.08357, allocations: 186.5 kB / 443.2 MB, free: 5.434 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.08358, allocations: 128 / 443.2 MB, free: 5.434 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001274/0.08372, allocations: 150.6 kB / 443.4 MB, free: 5.273 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002097/0.08393, allocations: 12.62 kB / 443.4 MB, free: 5.262 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007116/0.08465, allocations: 470.1 kB / 443.8 MB, free: 4.766 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002052/0.08487, allocations: 0.7002 MB / 444.5 MB, free: 4.039 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.673e-05/0.0849, allocations: 11.44 kB / 444.6 MB, free: 4.027 MB / 318.1 MB Notification: Performance of SimCode: time 2.81e-07/0.08491, allocations: 3.938 kB / 444.6 MB, free: 4.023 MB / 318.1 MB Notification: Performance of Templates: time 0.002453/0.08737, allocations: 1.353 MB / 445.9 MB, free: 2.672 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 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1)