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.001698/0.001698, allocations: 107.5 kB / 16.41 MB, free: 6.496 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.001918/0.001918, allocations: 189.5 kB / 17.34 MB, free: 5.766 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.356/1.356, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09502/0.09502, allocations: 22.33 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00176/0.00176, allocations: 67.89 kB / 435.6 MB, free: 13.9 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1421, allocations: 54.95 MB / 490.6 MB, free: 6.902 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.003969/0.1462, allocations: 1.474 MB / 492 MB, free: 5.414 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001077/0.1473, allocations: 415.2 kB / 492.4 MB, free: 5.008 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.392e-05/0.1474, allocations: 0 / 492.4 MB, free: 5.008 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 5.918e-05/0.1474, allocations: 7.922 kB / 492.4 MB, free: 5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002368/0.1477, allocations: 31.84 kB / 492.5 MB, free: 4.969 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.676e-05/0.1478, allocations: 19.91 kB / 492.5 MB, free: 4.949 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001411/0.148, allocations: 59.72 kB / 492.5 MB, free: 4.891 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.217e-05/0.1481, allocations: 4 kB / 492.6 MB, free: 4.887 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000168/0.1482, allocations: 43.83 kB / 492.6 MB, free: 4.844 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001253/0.1484, allocations: 31.84 kB / 492.6 MB, free: 4.812 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.683e-05/0.1484, allocations: 4 kB / 492.6 MB, free: 4.809 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.386e-05/0.1485, allocations: 4 kB / 492.6 MB, free: 4.805 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.175e-05/0.1485, allocations: 11.92 kB / 492.6 MB, free: 4.793 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.589e-05/0.1486, allocations: 39.8 kB / 492.7 MB, free: 4.754 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001271/0.1487, allocations: 43.77 kB / 492.7 MB, free: 4.711 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1488, allocations: 0 / 492.7 MB, free: 4.711 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.23e-06/0.1488, allocations: 0 / 492.7 MB, free: 4.711 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.1488, allocations: 7.875 kB / 492.7 MB, free: 4.703 MB / 366.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.0007416/0.1495, allocations: 383.2 kB / 493.1 MB, free: 4.281 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.1496, allocations: 8.031 kB / 493.1 MB, free: 4.273 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.859e-05/0.1497, allocations: 12.84 kB / 493.1 MB, free: 4.262 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002305/0.1499, allocations: 176.3 kB / 493.3 MB, free: 4.051 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.15, allocations: 4.375 kB / 493.3 MB, free: 4.047 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.224e-05/0.15, allocations: 12.36 kB / 493.3 MB, free: 4.035 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001753/0.1502, allocations: 61.56 kB / 493.4 MB, free: 3.969 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.1502, allocations: 3.984 kB / 493.4 MB, free: 3.965 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.1503, allocations: 0 / 493.4 MB, free: 3.965 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.1503, allocations: 3.984 kB / 493.4 MB, free: 3.961 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000108/0.1504, allocations: 31.92 kB / 493.4 MB, free: 3.93 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007568/0.1512, allocations: 320.6 kB / 493.7 MB, free: 3.566 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003623/0.1516, allocations: 82.58 kB / 493.8 MB, free: 3.477 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.722e-05/0.1517, allocations: 32.84 kB / 493.8 MB, free: 3.441 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.527e-05/0.1517, allocations: 4 kB / 493.8 MB, free: 3.438 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.901e-05/0.1518, allocations: 34.56 kB / 493.9 MB, free: 3.395 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 2.244e-06/0.1518, allocations: 4 kB / 493.9 MB, free: 3.391 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.001067/0.1529, allocations: 379 kB / 494.3 MB, free: 2.965 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.365e-05/0.1529, allocations: 59.39 kB / 494.3 MB, free: 2.895 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001579/0.1531, allocations: 126.8 kB / 494.4 MB, free: 2.758 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.1531, allocations: 29.7 kB / 494.5 MB, free: 2.723 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.809e-05/0.1532, allocations: 103.9 kB / 494.6 MB, free: 2.617 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.685e-05/0.1533, allocations: 35.55 kB / 494.6 MB, free: 2.582 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.646e-05/0.1534, allocations: 25.72 kB / 494.6 MB, free: 2.551 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1535, allocations: 318.8 kB / 494.9 MB, free: 2.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.703e-05/0.1536, allocations: 23.98 kB / 495 MB, free: 2.207 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.708e-05/0.1537, allocations: 46.56 kB / 495 MB, free: 2.152 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0006752/0.1544, allocations: 223 kB / 495.2 MB, free: 1.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1545, allocations: 0 / 495.2 MB, free: 1.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003774/0.1549, allocations: 142.3 kB / 495.4 MB, free: 1.762 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.1549, allocations: 8 kB / 495.4 MB, free: 1.754 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1549, allocations: 0 / 495.4 MB, free: 1.754 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002205/0.1551, allocations: 36.77 kB / 495.4 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.1553, allocations: 23.98 kB / 495.4 MB, free: 1.691 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001933/0.1573, allocations: 1.576 MB / 497 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.555e-05/0.1574, allocations: 0 / 497 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.69e-05/0.1574, allocations: 4 kB / 497 MB, free: 15.97 MB / 382.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.0001895/0.1576, allocations: 122.5 kB / 497.1 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.114e-05/0.1577, allocations: 11.84 kB / 497.1 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.336e-05/0.1577, allocations: 16.38 kB / 497.2 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.1578, allocations: 0 / 497.2 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.1578, allocations: 12.03 kB / 497.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.1578, allocations: 3.938 kB / 497.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007091/0.1585, allocations: 376.2 kB / 497.5 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.1585, allocations: 7.984 kB / 497.5 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001296/0.1587, allocations: 15.94 kB / 497.6 MB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002022/0.1589, allocations: 40.84 kB / 497.6 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.1589, allocations: 0 / 497.6 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001719/0.1607, allocations: 1.572 MB / 499.2 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.655e-06/0.1607, allocations: 4.031 kB / 499.2 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004317/0.1611, allocations: 249.2 kB / 499.4 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.901e-05/0.1612, allocations: 84.95 kB / 499.5 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.913e-05/0.1613, allocations: 12 kB / 499.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.1614, allocations: 0 / 499.5 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.042e-05/0.1615, allocations: 11.97 kB / 499.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.1615, allocations: 4 kB / 499.5 MB, free: 13.19 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001018/0.1616, allocations: 101.9 kB / 499.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1616, allocations: 0 / 499.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005901/0.1622, allocations: 24 kB / 499.7 MB, free: 13.07 MB / 382.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 0.0001313/0.1624, allocations: 99.25 kB / 499.8 MB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004724/0.1629, allocations: 186.5 kB / 499.9 MB, free: 12.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.1629, allocations: 0 / 499.9 MB, free: 12.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002411/0.1631, allocations: 154.6 kB / 0.4884 GB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003771/0.1635, allocations: 7.938 kB / 0.4884 GB, free: 12.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00132/0.1649, allocations: 445.8 kB / 0.4888 GB, free: 12.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/0.1652, allocations: 0.7 MB / 0.4895 GB, free: 11.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.593e-05/0.1653, allocations: 11.44 kB / 0.4895 GB, free: 11.39 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1653, allocations: 7.938 kB / 0.4895 GB, free: 11.38 MB / 382.1 MB Notification: Performance of Templates: time 0.004627/0.17, allocations: 1.378 MB / 0.4908 GB, free: 10 MB / 382.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)