Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_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_fixed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P") translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_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.3 kB / 15.34 MB, free: 0.5156 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.00133/0.00133, allocations: 192.5 kB / 16.25 MB, free: 6.633 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.291/1.291, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1949/0.1949, allocations: 22.35 MB / 312.4 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 59.91 kB / 378.2 MB, free: 13.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.283, allocations: 54.94 MB / 433.2 MB, free: 38.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P): time 0.002637/0.2857, allocations: 1.659 MB / 434.8 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006459/0.2863, allocations: 448 kB / 435.3 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.349e-05/0.2864, allocations: 0 / 435.3 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.016e-05/0.2865, allocations: 9.797 kB / 435.3 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000184/0.2867, allocations: 26.23 kB / 435.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.903e-05/0.2867, allocations: 17.92 kB / 435.3 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.739e-05/0.2868, allocations: 102.4 kB / 435.4 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.287, allocations: 26.14 kB / 435.5 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.2871, allocations: 47.19 kB / 435.5 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.284e-05/0.2872, allocations: 51.3 kB / 435.5 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.958e-05/0.2872, allocations: 8.375 kB / 435.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.653e-05/0.2872, allocations: 8.25 kB / 435.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.962e-05/0.2872, allocations: 22.2 kB / 435.6 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.067e-05/0.2873, allocations: 49.92 kB / 435.6 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001088/0.2874, allocations: 88.69 kB / 435.7 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2874, allocations: 0 / 435.7 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.2874, allocations: 0 / 435.7 MB, free: 37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.2874, allocations: 3.938 kB / 435.7 MB, free: 36.99 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0004832/0.2879, allocations: 402.3 kB / 436.1 MB, free: 36.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.288, allocations: 12.56 kB / 436.1 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.643e-05/0.288, allocations: 14.62 kB / 436.1 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.2881, allocations: 196.9 kB / 436.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.2881, allocations: 7.125 kB / 436.3 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.499e-05/0.2882, allocations: 6.156 kB / 436.3 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000124/0.2883, allocations: 82.38 kB / 436.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.2883, allocations: 0 / 436.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.2883, allocations: 4 kB / 436.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.2884, allocations: 2.719 kB / 436.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.98e-05/0.2884, allocations: 39.42 kB / 436.5 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004642/0.2889, allocations: 369.2 kB / 436.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/0.2891, allocations: 87.61 kB / 436.9 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.426e-05/0.2892, allocations: 37.84 kB / 437 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.154e-05/0.2892, allocations: 6.812 kB / 437 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.256e-05/0.2892, allocations: 30.75 kB / 437 MB, free: 35.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 2.375e-06/0.2892, allocations: 3.984 kB / 437 MB, free: 35.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006333/0.2899, allocations: 424.7 kB / 437.4 MB, free: 35.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.944e-05/0.2899, allocations: 55.34 kB / 437.5 MB, free: 35.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.307e-05/0.29, allocations: 151.4 kB / 437.6 MB, free: 35.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.29, allocations: 29.7 kB / 437.6 MB, free: 35.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.808e-05/0.2901, allocations: 107.2 kB / 437.7 MB, free: 35.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.57e-05/0.2901, allocations: 40.53 kB / 437.8 MB, free: 35.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.741e-05/0.2901, allocations: 30.55 kB / 437.8 MB, free: 35.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.727e-05/0.2902, allocations: 324.8 kB / 438.1 MB, free: 34.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.2e-05/0.2902, allocations: 25.27 kB / 438.2 MB, free: 34.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.192e-05/0.2903, allocations: 54.86 kB / 438.2 MB, free: 34.78 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003803/0.2907, allocations: 242.7 kB / 438.5 MB, free: 34.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.81e-07/0.2907, allocations: 0 / 438.5 MB, free: 34.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001925/0.2909, allocations: 155 kB / 438.6 MB, free: 34.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.2909, allocations: 5.219 kB / 438.6 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2909, allocations: 0 / 438.6 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001371/0.2911, allocations: 39.08 kB / 438.6 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.656e-05/0.2912, allocations: 29.16 kB / 438.7 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009666/0.2921, allocations: 1.608 MB / 440.3 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.634e-05/0.2922, allocations: 4 kB / 440.3 MB, free: 32.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.096e-06/0.2922, allocations: 5.125 kB / 440.3 MB, free: 32.9 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: G.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: G.Pm = G.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 (13): * Single equations (assignments): 12 * 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.304e-05/0.2923, allocations: 130.2 kB / 440.4 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.958e-05/0.2924, allocations: 9.531 kB / 440.4 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.356e-05/0.2924, allocations: 15.66 kB / 440.4 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2924, allocations: 96 / 440.4 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.2924, allocations: 3.938 kB / 440.4 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.2924, allocations: 6.859 kB / 440.5 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000377/0.2928, allocations: 431.1 kB / 440.9 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2928, allocations: 4.031 kB / 440.9 MB, free: 32.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.11e-05/0.2929, allocations: 25.09 kB / 440.9 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001107/0.293, allocations: 41.28 kB / 440.9 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.045e-05/0.293, allocations: 6.594 kB / 440.9 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007413/0.2938, allocations: 1.623 MB / 442.6 MB, free: 30.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.2938, allocations: 0 / 442.6 MB, free: 30.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002238/0.294, allocations: 270.3 kB / 442.8 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.668e-05/0.2941, allocations: 83.8 kB / 442.9 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.585e-05/0.2941, allocations: 6.844 kB / 442.9 MB, free: 30.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.324e-05/0.2942, allocations: 7.422 kB / 442.9 MB, free: 30.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.472e-05/0.2942, allocations: 11.16 kB / 442.9 MB, free: 30.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.2942, allocations: 3.281 kB / 442.9 MB, free: 30.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.32e-05/0.2943, allocations: 110.8 kB / 443.1 MB, free: 30.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2943, allocations: 2.656 kB / 443.1 MB, free: 30.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003147/0.2946, allocations: 26.75 kB / 443.1 MB, free: 30.33 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (G.thetap,G.deltag,G.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 (8): * Single equations (assignments): 7 * 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.803e-05/0.2947, allocations: 107.9 kB / 443.2 MB, free: 30.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002699/0.295, allocations: 196.8 kB / 443.4 MB, free: 30.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.295, allocations: 0 / 443.4 MB, free: 30.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.2951, allocations: 159.5 kB / 443.5 MB, free: 29.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002401/0.2953, allocations: 10.2 kB / 443.5 MB, free: 29.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007248/0.2961, allocations: 498.6 kB / 444 MB, free: 29.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001266/0.2962, allocations: 0.7131 MB / 444.7 MB, free: 28.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.758e-05/0.2963, allocations: 9.156 kB / 444.8 MB, free: 28.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.772e-05/0.2963, allocations: 12.78 kB / 444.8 MB, free: 28.88 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2963, allocations: 0 / 444.8 MB, free: 28.88 MB / 350.1 MB Notification: Performance of Templates: time 0.003413/0.2997, allocations: 1.358 MB / 446.1 MB, free: 28.77 MB / 350.1 MB make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.makefile (rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.sim & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_fixed_P.pipe 2>&1)