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.001473/0.001473, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.001929/0.00193, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.548/1.548, allocations: 223.3 MB / 240 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2782/0.2782, allocations: 22.34 MB / 313.4 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003753/0.0003755, allocations: 11.98 kB / 379.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.3591, allocations: 55.97 MB / 435.9 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.001532/0.3606, allocations: 1.176 MB / 437.1 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005193/0.3612, allocations: 394.3 kB / 437.5 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.373e-05/0.3612, allocations: 0 / 437.5 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.317e-05/0.3613, allocations: 7.188 kB / 437.5 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000178/0.3615, allocations: 21.72 kB / 437.5 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.812e-05/0.3615, allocations: 10.22 kB / 437.5 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.381e-05/0.3616, allocations: 59.8 kB / 437.6 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.162e-05/0.3617, allocations: 12.58 kB / 437.6 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.591e-05/0.3618, allocations: 34.98 kB / 437.6 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.256e-05/0.3619, allocations: 37.28 kB / 437.6 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.644e-05/0.3619, allocations: 2.844 kB / 437.6 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.649e-05/0.3619, allocations: 3.031 kB / 437.6 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.689e-05/0.3619, allocations: 14.2 kB / 437.7 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.433e-05/0.362, allocations: 39.05 kB / 437.7 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.791e-05/0.362, allocations: 29.95 kB / 437.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.362, allocations: 0 / 437.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3621, allocations: 0 / 437.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.3621, allocations: 0 / 437.7 MB, free: 37.11 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.0004619/0.3625, allocations: 370 kB / 438.1 MB, free: 36.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.3626, allocations: 11.62 kB / 438.1 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.488e-05/0.3626, allocations: 9.406 kB / 438.1 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/0.3627, allocations: 182.5 kB / 438.3 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.414e-05/0.3628, allocations: 2.875 kB / 438.3 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.137e-05/0.3628, allocations: 9.625 kB / 438.3 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001085/0.3629, allocations: 62 kB / 438.4 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.3629, allocations: 0 / 438.4 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.3629, allocations: 7.953 kB / 438.4 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.3629, allocations: 3.094 kB / 438.4 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.906e-05/0.363, allocations: 23.11 kB / 438.4 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004654/0.3635, allocations: 312.2 kB / 438.7 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00025/0.3637, allocations: 81.11 kB / 438.8 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.053e-05/0.3638, allocations: 38.97 kB / 438.8 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.411e-05/0.3638, allocations: 192 / 438.8 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.558e-05/0.3638, allocations: 38.5 kB / 438.9 MB, free: 36.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.052e-06/0.3638, allocations: 0 / 438.9 MB, free: 36.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006536/0.3645, allocations: 384.4 kB / 439.2 MB, free: 35.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.859e-05/0.3645, allocations: 54.38 kB / 439.3 MB, free: 35.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.945e-05/0.3646, allocations: 125.4 kB / 439.4 MB, free: 35.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.098e-05/0.3647, allocations: 33.7 kB / 439.4 MB, free: 35.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.214e-05/0.3647, allocations: 104.8 kB / 439.5 MB, free: 35.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.483e-05/0.3647, allocations: 40.38 kB / 439.6 MB, free: 35.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.51e-06/0.3647, allocations: 4 kB / 439.6 MB, free: 35.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.882e-05/0.3648, allocations: 325 kB / 439.9 MB, free: 35.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.525e-05/0.3649, allocations: 19.09 kB / 439.9 MB, free: 35.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.798e-05/0.3649, allocations: 48.2 kB / 440 MB, free: 35.04 MB / 350.1 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.0002704/0.3652, allocations: 97.36 kB / 440.1 MB, free: 35.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.3652, allocations: 0 / 440.1 MB, free: 35.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001824/0.3654, allocations: 131.7 kB / 440.2 MB, free: 34.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.3654, allocations: 5.844 kB / 440.2 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3654, allocations: 0 / 440.2 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001327/0.3656, allocations: 36.81 kB / 440.2 MB, free: 34.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.195e-05/0.3656, allocations: 30.31 kB / 440.3 MB, free: 34.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009061/0.3666, allocations: 1.406 MB / 441.7 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.905e-05/0.3666, allocations: 2.625 kB / 441.7 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/0.3666, allocations: 13.27 kB / 441.7 MB, free: 33.49 MB / 350.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 sytem: 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 9.74e-05/0.3668, allocations: 115.3 kB / 441.8 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.899e-05/0.3668, allocations: 13.64 kB / 441.8 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.979e-05/0.3668, allocations: 12.38 kB / 441.8 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3668, allocations: 7.047 kB / 441.8 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.3668, allocations: 0 / 441.8 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3668, allocations: 0 / 441.8 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003363/0.3672, allocations: 383.4 kB / 442.2 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3672, allocations: 96 / 442.2 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.342e-05/0.3673, allocations: 19.14 kB / 442.2 MB, free: 33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001018/0.3674, allocations: 44.78 kB / 442.3 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.3674, allocations: 4.031 kB / 442.3 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007482/0.3682, allocations: 1.414 MB / 443.7 MB, free: 31.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3682, allocations: 7.094 kB / 443.7 MB, free: 31.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002004/0.3684, allocations: 232.7 kB / 443.9 MB, free: 31.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.773e-05/0.3684, allocations: 87.27 kB / 444 MB, free: 31.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.3684, allocations: 2.844 kB / 444 MB, free: 31.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.147e-05/0.3685, allocations: 8 kB / 444 MB, free: 31.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.634e-05/0.3685, allocations: 10.3 kB / 444 MB, free: 31.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.3686, allocations: 2.969 kB / 444 MB, free: 31.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.985e-05/0.3686, allocations: 108.9 kB / 444.1 MB, free: 31.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3686, allocations: 0 / 444.1 MB, free: 31.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003113/0.3689, allocations: 24.47 kB / 444.2 MB, free: 31.17 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 8.383e-05/0.369, allocations: 98.36 kB / 444.3 MB, free: 31.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002601/0.3693, allocations: 186.7 kB / 444.4 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.3693, allocations: 0 / 444.4 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.3694, allocations: 140.7 kB / 444.6 MB, free: 30.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002261/0.3696, allocations: 19.52 kB / 444.6 MB, free: 30.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007638/0.3704, allocations: 493 kB / 445.1 MB, free: 30.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001946/0.3706, allocations: 0.7 MB / 445.8 MB, free: 29.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.766e-05/0.3707, allocations: 11.98 kB / 445.8 MB, free: 29.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.317e-05/0.3707, allocations: 15.12 kB / 445.8 MB, free: 29.76 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3707, allocations: 0 / 445.8 MB, free: 29.76 MB / 350.1 MB Notification: Performance of Templates: time 0.003242/0.374, allocations: 1.016 MB / 446.8 MB, free: 29.68 MB / 350.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)