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.001364/0.001364, allocations: 99.27 kB / 16.35 MB, free: 5.875 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.001221/0.001221, allocations: 191.8 kB / 17.29 MB, free: 5.516 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.246/1.246, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08704/0.08704, allocations: 22.32 MB / 313.5 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 63.11 kB / 380.1 MB, free: 42.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08389/0.08518, allocations: 54.95 MB / 435.1 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002334/0.08755, allocations: 1.484 MB / 436.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005793/0.08815, allocations: 415.2 kB / 437 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.85e-05/0.0882, allocations: 0 / 437 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.979e-05/0.08825, allocations: 7.922 kB / 437 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001664/0.08842, allocations: 23.84 kB / 437 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.75e-05/0.08848, allocations: 15.92 kB / 437 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.031e-05/0.08858, allocations: 67.7 kB / 437.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.699e-05/0.08865, allocations: 7.984 kB / 437.1 MB, free: 12.33 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.08876, allocations: 31.86 kB / 437.1 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.73e-05/0.08887, allocations: 39.83 kB / 437.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.668e-05/0.08889, allocations: 8 kB / 437.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.345e-05/0.08891, allocations: 4 kB / 437.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.946e-05/0.08894, allocations: 11.92 kB / 437.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.935e-05/0.089, allocations: 31.84 kB / 437.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001031/0.08911, allocations: 39.78 kB / 437.3 MB, free: 12.17 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.08913, allocations: 0 / 437.3 MB, free: 12.17 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.466e-06/0.08914, allocations: 0 / 437.3 MB, free: 12.17 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.08915, allocations: 3.938 kB / 437.3 MB, free: 12.16 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.0006276/0.08978, allocations: 379.3 kB / 437.6 MB, free: 11.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.08983, allocations: 12.02 kB / 437.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.95e-05/0.08988, allocations: 8.844 kB / 437.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.09003, allocations: 188.2 kB / 437.8 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.09005, allocations: 4.375 kB / 437.8 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.16e-05/0.09008, allocations: 8.375 kB / 437.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001064/0.09019, allocations: 61.61 kB / 437.9 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.0902, allocations: 0 / 437.9 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.09022, allocations: 4 kB / 437.9 MB, free: 11.42 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.09023, allocations: 4 kB / 437.9 MB, free: 11.42 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.132e-05/0.0903, allocations: 27.97 kB / 437.9 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004439/0.09074, allocations: 312.6 kB / 438.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000226/0.09098, allocations: 78.83 kB / 438.3 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.3e-05/0.09105, allocations: 36.8 kB / 438.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.529e-05/0.09107, allocations: 8.109 kB / 438.4 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.73e-05/0.0911, allocations: 38.48 kB / 438.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.282e-06/0.09111, allocations: 3.938 kB / 438.4 MB, free: 10.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006141/0.09173, allocations: 378.8 kB / 438.8 MB, free: 10.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.09177, allocations: 51.41 kB / 438.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.694e-05/0.09188, allocations: 130.1 kB / 439 MB, free: 10.22 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.09191, allocations: 37.64 kB / 439 MB, free: 10.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.558e-05/0.09196, allocations: 99.88 kB / 439.1 MB, free: 10.08 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.587e-05/0.09199, allocations: 39.44 kB / 439.1 MB, free: 10.04 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.954e-05/0.09204, allocations: 29.72 kB / 439.2 MB, free: 10 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.09214, allocations: 318.8 kB / 439.5 MB, free: 9.684 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.228e-05/0.09219, allocations: 23.98 kB / 439.5 MB, free: 9.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.431e-05/0.09225, allocations: 54.56 kB / 439.5 MB, free: 9.598 MB / 318.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003853/0.09264, allocations: 218.3 kB / 439.8 MB, free: 9.359 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.09265, allocations: 0 / 439.8 MB, free: 9.359 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002234/0.09288, allocations: 141.3 kB / 439.9 MB, free: 9.215 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.0929, allocations: 8 kB / 439.9 MB, free: 9.207 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-06/0.09291, allocations: 0 / 439.9 MB, free: 9.207 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001283/0.09305, allocations: 32.89 kB / 439.9 MB, free: 9.172 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.977e-05/0.09314, allocations: 27.94 kB / 440 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001183/0.09434, allocations: 1.567 MB / 441.5 MB, free: 7.441 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.711e-05/0.09441, allocations: 3.984 kB / 441.5 MB, free: 7.438 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.09443, allocations: 8 kB / 441.5 MB, free: 7.43 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.0001141/0.09455, allocations: 122.6 kB / 441.7 MB, free: 7.301 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.164e-05/0.09459, allocations: 15.84 kB / 441.7 MB, free: 7.285 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.364e-05/0.09462, allocations: 12.38 kB / 441.7 MB, free: 7.273 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.09463, allocations: 0 / 441.7 MB, free: 7.273 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.09463, allocations: 0 / 441.7 MB, free: 7.273 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.09464, allocations: 3.984 kB / 441.7 MB, free: 7.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000452/0.0951, allocations: 380 kB / 442.1 MB, free: 6.836 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.09511, allocations: 4 kB / 442.1 MB, free: 6.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.075e-05/0.0952, allocations: 20.02 kB / 442.1 MB, free: 6.812 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001126/0.09532, allocations: 32.83 kB / 442.1 MB, free: 6.777 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.09534, allocations: 7.922 kB / 442.1 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/0.09639, allocations: 1.577 MB / 443.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.09641, allocations: 11.86 kB / 443.7 MB, free: 5.039 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002501/0.09667, allocations: 245.1 kB / 444 MB, free: 4.777 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.913e-05/0.09673, allocations: 85.08 kB / 444 MB, free: 4.676 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.482e-05/0.09676, allocations: 4 kB / 444 MB, free: 4.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.537e-05/0.09685, allocations: 0 / 444 MB, free: 4.672 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.421e-05/0.09688, allocations: 11.98 kB / 444.1 MB, free: 4.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-06/0.09689, allocations: 4 kB / 444.1 MB, free: 4.656 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.916e-05/0.09695, allocations: 99.27 kB / 444.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09696, allocations: 3.938 kB / 444.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003274/0.09729, allocations: 24 kB / 444.2 MB, free: 4.531 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 9.425e-05/0.09739, allocations: 105.1 kB / 444.3 MB, free: 4.422 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002887/0.09769, allocations: 186.5 kB / 444.5 MB, free: 4.227 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.0977, allocations: 192 / 444.5 MB, free: 4.227 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000135/0.09784, allocations: 158.7 kB / 444.6 MB, free: 4.059 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002288/0.09808, allocations: 9.969 kB / 444.6 MB, free: 4.051 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007876/0.09887, allocations: 428 kB / 445 MB, free: 3.602 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002568/0.09914, allocations: 0.7 MB / 445.7 MB, free: 2.875 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.336e-05/0.09918, allocations: 8.562 kB / 445.8 MB, free: 2.867 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.568e-05/0.09921, allocations: 11.44 kB / 445.8 MB, free: 2.855 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.09922, allocations: 0 / 445.8 MB, free: 2.855 MB / 318.1 MB Notification: Performance of Templates: time 0.003392/0.1026, allocations: 1.144 MB / 446.9 MB, free: 1.711 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 cvode -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1)