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.001105/0.001105, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 197.9 kB / 16.53 MB, free: 6.391 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.409/1.409, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2629/0.2629, allocations: 22.35 MB / 312.7 MB, free: 12.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001815/0.001815, allocations: 59.91 kB / 378.7 MB, free: 12.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3443, allocations: 54.95 MB / 433.7 MB, free: 38.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.002337/0.3467, allocations: 1.47 MB / 435.1 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005601/0.3473, allocations: 423.1 kB / 435.6 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.71e-05/0.3473, allocations: 0 / 435.6 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.278e-05/0.3474, allocations: 11.73 kB / 435.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001866/0.3476, allocations: 18.39 kB / 435.6 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.133e-05/0.3477, allocations: 18.45 kB / 435.6 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.368e-05/0.3477, allocations: 69.84 kB / 435.7 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.635e-05/0.3478, allocations: 8.281 kB / 435.7 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.328e-05/0.3479, allocations: 39.91 kB / 435.7 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.432e-05/0.348, allocations: 30.03 kB / 435.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.878e-05/0.348, allocations: 3.312 kB / 435.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.602e-05/0.3481, allocations: 3.125 kB / 435.7 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.032e-05/0.3481, allocations: 21.11 kB / 435.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.972e-05/0.3481, allocations: 27.7 kB / 435.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.255e-05/0.3482, allocations: 41.67 kB / 435.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3482, allocations: 0 / 435.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3482, allocations: 0 / 435.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.3482, allocations: 0 / 435.8 MB, free: 37.17 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.0004881/0.3487, allocations: 387.4 kB / 436.2 MB, free: 36.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.3488, allocations: 12.47 kB / 436.2 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.964e-05/0.3488, allocations: 10.75 kB / 436.2 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.3489, allocations: 181.2 kB / 436.4 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.349, allocations: 8.281 kB / 436.4 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.215e-05/0.349, allocations: 4.094 kB / 436.4 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001043/0.3491, allocations: 66.27 kB / 436.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.3491, allocations: 0 / 436.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.3491, allocations: 0 / 436.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.3491, allocations: 2.875 kB / 436.5 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.601e-05/0.3492, allocations: 32.42 kB / 436.5 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004241/0.3496, allocations: 315.8 kB / 436.8 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002309/0.3499, allocations: 82.25 kB / 436.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.896e-05/0.3499, allocations: 31.94 kB / 436.9 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.35, allocations: 2.875 kB / 437 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.932e-05/0.35, allocations: 34.56 kB / 437 MB, free: 36.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.012e-06/0.35, allocations: 3.938 kB / 437 MB, free: 36.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0005962/0.3506, allocations: 385.3 kB / 437.4 MB, free: 35.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.138e-05/0.3506, allocations: 55.34 kB / 437.4 MB, free: 35.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.446e-05/0.3507, allocations: 135.8 kB / 437.6 MB, free: 35.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.448e-06/0.3507, allocations: 29.64 kB / 437.6 MB, free: 35.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.953e-05/0.3508, allocations: 101.6 kB / 437.7 MB, free: 35.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.173e-05/0.3508, allocations: 39.84 kB / 437.7 MB, free: 35.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.939e-05/0.3509, allocations: 30.84 kB / 437.7 MB, free: 35.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.82e-05/0.3509, allocations: 318.3 kB / 438.1 MB, free: 35.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.592e-05/0.351, allocations: 22.03 kB / 438.1 MB, free: 35.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.516e-05/0.351, allocations: 49.89 kB / 438.1 MB, free: 35.05 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0003447/0.3514, allocations: 223.7 kB / 438.3 MB, free: 34.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.3514, allocations: 0 / 438.3 MB, free: 34.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001831/0.3516, allocations: 136.3 kB / 438.5 MB, free: 34.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.149e-05/0.3516, allocations: 7.062 kB / 438.5 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.3516, allocations: 6.922 kB / 438.5 MB, free: 34.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001298/0.3517, allocations: 37.84 kB / 438.5 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.026e-05/0.3518, allocations: 17.44 kB / 438.5 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009018/0.3527, allocations: 1.577 MB / 440.1 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.342e-05/0.3528, allocations: 6.719 kB / 440.1 MB, free: 33.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.3528, allocations: 2.875 kB / 440.1 MB, free: 33.21 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 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 7.988e-05/0.3529, allocations: 127.5 kB / 440.3 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.844e-05/0.3529, allocations: 14.22 kB / 440.3 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.88e-05/0.3529, allocations: 15.7 kB / 440.3 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.353, allocations: 3.969 kB / 440.3 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.353, allocations: 0 / 440.3 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.353, allocations: 3.938 kB / 440.3 MB, free: 33.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003258/0.3533, allocations: 379.6 kB / 440.7 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3533, allocations: 0 / 440.7 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.815e-05/0.3534, allocations: 23.75 kB / 440.7 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000105/0.3535, allocations: 32.14 kB / 440.7 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.3535, allocations: 10.61 kB / 440.7 MB, free: 32.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007358/0.3543, allocations: 1.579 MB / 442.3 MB, free: 31.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3543, allocations: 6.312 kB / 442.3 MB, free: 31.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001983/0.3545, allocations: 230.7 kB / 442.5 MB, free: 30.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.676e-05/0.3545, allocations: 91.11 kB / 442.6 MB, free: 30.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.3545, allocations: 2.844 kB / 442.6 MB, free: 30.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.347e-05/0.3546, allocations: 8.062 kB / 442.6 MB, free: 30.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.055e-05/0.3547, allocations: 14.42 kB / 442.7 MB, free: 30.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-06/0.3547, allocations: 3.438 kB / 442.7 MB, free: 30.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.381e-05/0.3547, allocations: 102 kB / 442.8 MB, free: 30.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3547, allocations: 0 / 442.8 MB, free: 30.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003342/0.3551, allocations: 25.22 kB / 442.8 MB, free: 30.73 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 (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.576e-05/0.3551, allocations: 100.6 kB / 442.9 MB, free: 30.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002803/0.3554, allocations: 191.8 kB / 443.1 MB, free: 30.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3554, allocations: 192 / 443.1 MB, free: 30.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001166/0.3556, allocations: 150.5 kB / 443.2 MB, free: 30.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002308/0.3558, allocations: 14.94 kB / 443.2 MB, free: 30.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006936/0.3565, allocations: 429 kB / 443.6 MB, free: 30.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001281/0.3566, allocations: 0.6942 MB / 444.3 MB, free: 29.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.346e-05/0.3567, allocations: 9.203 kB / 444.4 MB, free: 29.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.492e-05/0.3567, allocations: 9.875 kB / 444.4 MB, free: 29.34 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3567, allocations: 4 kB / 444.4 MB, free: 29.34 MB / 350.1 MB Notification: Performance of Templates: time 0.003213/0.3599, allocations: 1.148 MB / 445.5 MB, free: 29.27 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)