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.001058/0.001058, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001192/0.001192, allocations: 177.3 kB / 15.95 MB, free: 216 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.536/1.536, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.3094/0.3094, allocations: 22.33 MB / 313.3 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003228/0.0003229, allocations: 8 kB / 379.8 MB, free: 12.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3628/0.3631, allocations: 55.97 MB / 435.8 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.00184/0.365, allocations: 1.152 MB / 437 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006865/0.3657, allocations: 397.1 kB / 437.3 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.06e-05/0.3658, allocations: 0 / 437.3 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.034e-05/0.3659, allocations: 9.609 kB / 437.4 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000222/0.3661, allocations: 21.97 kB / 437.4 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.898e-05/0.3662, allocations: 9.688 kB / 437.4 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.597e-05/0.3663, allocations: 43.86 kB / 437.4 MB, free: 37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.581e-05/0.3664, allocations: 13.41 kB / 437.4 MB, free: 37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.3665, allocations: 33.64 kB / 437.5 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.3666, allocations: 33.16 kB / 437.5 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.529e-05/0.3666, allocations: 7.609 kB / 437.5 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.98e-05/0.3667, allocations: 6.656 kB / 437.5 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.967e-05/0.3667, allocations: 10.3 kB / 437.5 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.373e-05/0.3667, allocations: 37.27 kB / 437.6 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.325e-05/0.3668, allocations: 23.34 kB / 437.6 MB, free: 36.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3668, allocations: 0 / 437.6 MB, free: 36.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.3668, allocations: 0 / 437.6 MB, free: 36.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.3669, allocations: 0 / 437.6 MB, free: 36.92 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.0005981/0.3675, allocations: 377.9 kB / 438 MB, free: 36.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.3675, allocations: 9.031 kB / 438 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.488e-05/0.3676, allocations: 9.906 kB / 438 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001605/0.3677, allocations: 180 kB / 438.2 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.3678, allocations: 2.906 kB / 438.2 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.149e-05/0.3678, allocations: 6.969 kB / 438.2 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001326/0.3679, allocations: 61.92 kB / 438.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.368, allocations: 0 / 438.2 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.368, allocations: 11.89 kB / 438.2 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.368, allocations: 4 kB / 438.2 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.595e-05/0.3681, allocations: 28.08 kB / 438.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005567/0.3686, allocations: 307.5 kB / 438.6 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/0.3689, allocations: 90.27 kB / 438.7 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.527e-05/0.3689, allocations: 4 kB / 438.7 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.252e-05/0.369, allocations: 33.22 kB / 438.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.302e-06/0.369, allocations: 0 / 438.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007171/0.3697, allocations: 385.6 kB / 439.1 MB, free: 35.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.374e-05/0.3697, allocations: 53.88 kB / 439.1 MB, free: 35.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.532e-05/0.3698, allocations: 129.8 kB / 439.2 MB, free: 35.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/0.3699, allocations: 29.7 kB / 439.3 MB, free: 35.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.083e-05/0.3699, allocations: 105.1 kB / 439.4 MB, free: 35.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.615e-05/0.37, allocations: 40.58 kB / 439.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.618e-06/0.37, allocations: 4 kB / 439.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.344e-05/0.37, allocations: 325.2 kB / 439.7 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.683e-05/0.3701, allocations: 19.34 kB / 439.8 MB, free: 34.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.744e-05/0.3701, allocations: 42.75 kB / 439.8 MB, free: 34.86 MB / 350.1 MB Notification: The given system is mixed-determined. [index = 1] Notification: Performance of analyzeInitialSystem (initialization): time 0.0002897/0.3704, allocations: 102.5 kB / 439.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.3704, allocations: 0 / 439.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001883/0.3706, allocations: 136.8 kB / 440 MB, free: 34.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.3707, allocations: 5.719 kB / 440 MB, free: 34.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.3707, allocations: 0 / 440 MB, free: 34.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001475/0.3708, allocations: 35.88 kB / 440.1 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.29e-05/0.3709, allocations: 33.72 kB / 440.1 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009596/0.3719, allocations: 1.4 MB / 441.5 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.101e-05/0.372, allocations: 7.031 kB / 441.5 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.076e-06/0.372, allocations: 10.44 kB / 441.5 MB, free: 33.3 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.057e-05/0.3721, allocations: 114.8 kB / 441.6 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.782e-05/0.3721, allocations: 17.11 kB / 441.7 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.034e-05/0.3721, allocations: 12.08 kB / 441.7 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.3721, allocations: 2.625 kB / 441.7 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-06/0.3722, allocations: 0 / 441.7 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.3722, allocations: 0 / 441.7 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000349/0.3725, allocations: 385.1 kB / 442 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3725, allocations: 0 / 442 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.638e-05/0.3726, allocations: 17.08 kB / 442.1 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001045/0.3727, allocations: 42.97 kB / 442.1 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.3727, allocations: 4.031 kB / 442.1 MB, free: 32.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007739/0.3735, allocations: 1.425 MB / 443.5 MB, free: 31.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.3735, allocations: 0 / 443.5 MB, free: 31.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002445/0.3738, allocations: 250.8 kB / 443.8 MB, free: 31.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.751e-05/0.3738, allocations: 81.02 kB / 443.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.501e-05/0.3739, allocations: 2.844 kB / 443.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.203e-05/0.3739, allocations: 8.062 kB / 443.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.511e-05/0.374, allocations: 8.812 kB / 443.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.344e-06/0.374, allocations: 6.422 kB / 443.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.813e-05/0.3741, allocations: 100.5 kB / 444 MB, free: 30.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3741, allocations: 0 / 444 MB, free: 30.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003199/0.3744, allocations: 24.84 kB / 444 MB, free: 30.98 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 0.0001077/0.3745, allocations: 104.2 kB / 444.1 MB, free: 30.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003122/0.3748, allocations: 189.6 kB / 444.3 MB, free: 30.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3748, allocations: 6.688 kB / 444.3 MB, free: 30.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.375, allocations: 142.5 kB / 444.4 MB, free: 30.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001773/0.3752, allocations: 6.938 kB / 444.4 MB, free: 30.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007561/0.3759, allocations: 498.7 kB / 444.9 MB, free: 30.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001666/0.3761, allocations: 0.705 MB / 445.6 MB, free: 29.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.724e-05/0.3761, allocations: 8.25 kB / 445.6 MB, free: 29.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.877e-05/0.3762, allocations: 13.41 kB / 445.7 MB, free: 29.56 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3762, allocations: 0 / 445.7 MB, free: 29.56 MB / 350.1 MB Notification: Performance of Templates: time 0.003682/0.3799, allocations: 1.006 MB / 446.7 MB, free: 29.48 MB / 350.1 MB make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: