Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle") translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00119/0.00119, allocations: 191.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.196/1.196, allocations: 194.2 MB / 212.2 MB, free: 2.367 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001699/0.001699, allocations: 127.5 kB / 256.6 MB, free: 4.316 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.163/0.163, allocations: 37.96 MB / 338.8 MB, free: 2.207 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 71.84 kB / 401.8 MB, free: 68.74 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08251/0.08371, allocations: 52.19 MB / 454 MB, free: 16.56 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.007816/0.09158, allocations: 8.704 MB / 462.7 MB, free: 7.816 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004866/0.09649, allocations: 3.409 MB / 466.1 MB, free: 4.395 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009619/0.09749, allocations: 51.69 kB / 466.2 MB, free: 4.344 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001915/0.09942, allocations: 0.7393 MB / 466.9 MB, free: 3.602 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001657/0.1011, allocations: 0.6342 MB / 467.5 MB, free: 2.965 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008441/0.102, allocations: 343 kB / 467.9 MB, free: 2.633 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001628/0.1036, allocations: 2.023 MB / 469.9 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008581/0.1045, allocations: 0.6972 MB / 470.6 MB, free: 15.89 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000753/0.1052, allocations: 489.9 kB / 471.1 MB, free: 15.41 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009967/0.1062, allocations: 0.6619 MB / 471.7 MB, free: 14.75 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001662/0.1064, allocations: 60 kB / 471.8 MB, free: 14.69 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009324/0.1074, allocations: 487 kB / 472.3 MB, free: 14.21 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004508/0.1078, allocations: 442.9 kB / 472.7 MB, free: 13.78 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006248/0.1085, allocations: 489.5 kB / 473.2 MB, free: 13.3 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001434/0.1099, allocations: 1.378 MB / 474.5 MB, free: 11.91 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.1099, allocations: 0 / 474.5 MB, free: 11.91 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.1099, allocations: 0 / 474.5 MB, free: 11.91 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.7e-05/0.11, allocations: 4 kB / 474.6 MB, free: 11.91 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002315/0.1123, allocations: 1.266 MB / 475.8 MB, free: 10.59 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.1123, allocations: 16.03 kB / 475.8 MB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00117/0.1135, allocations: 199.6 kB / 476 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001406/0.1149, allocations: 0.6864 MB / 476.7 MB, free: 9.652 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.663e-05/0.115, allocations: 66.12 kB / 476.8 MB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002141/0.1152, allocations: 99.95 kB / 476.9 MB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/0.1168, allocations: 1.107 MB / 478 MB, free: 8.336 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.518e-05/0.1169, allocations: 7.844 kB / 478 MB, free: 8.328 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.409e-05/0.1169, allocations: 43.92 kB / 478 MB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001591/0.1171, allocations: 73.95 kB / 478.1 MB, free: 8.215 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/0.1185, allocations: 0.886 MB / 479 MB, free: 7.324 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005406/0.1239, allocations: 4.086 MB / 483.1 MB, free: 3.031 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005737/0.1245, allocations: 421.9 kB / 483.5 MB, free: 2.582 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000343/0.1249, allocations: 273.6 kB / 483.8 MB, free: 2.309 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.722e-05/0.1249, allocations: 7.984 kB / 483.8 MB, free: 2.301 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.125, allocations: 38.56 kB / 483.8 MB, free: 2.254 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 2.305e-06/0.125, allocations: 0 / 483.8 MB, free: 2.254 MB / 330.7 MB Notification: Performance of matching and sorting (n=57): time 0.00588/0.1308, allocations: 2.807 MB / 486.6 MB, free: 15.36 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.1309, allocations: 85.61 kB / 486.7 MB, free: 15.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006595/0.1316, allocations: 0.5692 MB / 487.3 MB, free: 14.68 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.885e-05/0.1316, allocations: 37.7 kB / 487.3 MB, free: 14.63 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003468/0.132, allocations: 462.5 kB / 487.8 MB, free: 14.17 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002063/0.1322, allocations: 220.9 kB / 488 MB, free: 13.96 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002649/0.1325, allocations: 154.5 kB / 488.1 MB, free: 13.8 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.1327, allocations: 378.8 kB / 488.5 MB, free: 13.42 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005118/0.1332, allocations: 321.7 kB / 488.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00067/0.1339, allocations: 0.5434 MB / 489.3 MB, free: 12.46 MB / 346.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.00445/0.1383, allocations: 1.767 MB / 491.1 MB, free: 10.59 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.136e-06/0.1384, allocations: 4 kB / 491.1 MB, free: 10.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002091/0.1405, allocations: 1.197 MB / 492.3 MB, free: 9.352 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.1405, allocations: 11.94 kB / 492.3 MB, free: 9.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001306/0.1418, allocations: 0.8504 MB / 493.2 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005208/0.1423, allocations: 170.5 kB / 493.3 MB, free: 8.285 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006619/0.143, allocations: 191.7 kB / 493.5 MB, free: 8.098 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003438/0.1465, allocations: 4.507 MB / 498 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006523/0.1471, allocations: 47.89 kB / 498.1 MB, free: 3.141 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-05/0.1472, allocations: 36 kB / 498.1 MB, free: 3.105 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: generator.w_el = generator.omega[1] + generator.omega[2]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005328/0.1478, allocations: 317.5 kB / 498.4 MB, free: 2.785 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.1479, allocations: 67.16 kB / 498.5 MB, free: 2.719 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001152/0.1491, allocations: 0.7675 MB / 499.3 MB, free: 1.941 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.1491, allocations: 4 kB / 499.3 MB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.1491, allocations: 0 / 499.3 MB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.1491, allocations: 7.938 kB / 499.3 MB, free: 1.93 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00268/0.1518, allocations: 1.647 MB / 0.4892 GB, free: 196 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.1518, allocations: 4 kB / 0.4892 GB, free: 192 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005725/0.1524, allocations: 131.9 kB / 0.4893 GB, free: 60 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/0.1524, allocations: 4 kB / 0.4893 GB, free: 56 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.272e-05/0.1525, allocations: 23.92 kB / 0.4893 GB, free: 32 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.1525, allocations: 8 kB / 0.4893 GB, free: 24 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1525, allocations: 0 / 0.4893 GB, free: 24 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00636/0.1588, allocations: 4.418 MB / 0.4937 GB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002407/0.1591, allocations: 188.2 kB / 0.4938 GB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.611e-05/0.1592, allocations: 19.98 kB / 0.4939 GB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003426/0.1595, allocations: 19.98 kB / 0.4939 GB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.908e-05/0.1596, allocations: 40.33 kB / 0.4939 GB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.448e-05/0.1597, allocations: 19.94 kB / 0.4939 GB, free: 11.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004943/0.1602, allocations: 419 kB / 0.4943 GB, free: 10.71 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1602, allocations: 3.938 kB / 0.4943 GB, free: 10.71 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001126/0.1613, allocations: 312 kB / 0.4946 GB, free: 10.4 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 6 (generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003022/0.1616, allocations: 135.1 kB / 0.4948 GB, free: 10.26 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001836/0.1635, allocations: 1.09 MB / 0.4958 GB, free: 9.129 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.1635, allocations: 4 kB / 0.4958 GB, free: 9.125 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004231/0.1639, allocations: 286.2 kB / 0.4961 GB, free: 8.848 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008974/0.1648, allocations: 143.7 kB / 0.4962 GB, free: 8.707 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003973/0.1688, allocations: 2.757 MB / 0.4989 GB, free: 5.879 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006912/0.1695, allocations: 1.102 MB / 0.5 GB, free: 4.742 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006305/0.1701, allocations: 225.8 kB / 0.5002 GB, free: 4.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002185/0.1704, allocations: 59.42 kB / 0.5003 GB, free: 4.465 MB / 362.7 MB Notification: Performance of SimCode: time 8.22e-07/0.1704, allocations: 0 / 0.5003 GB, free: 4.465 MB / 362.7 MB Notification: Performance of Templates: time 0.1672/0.3376, allocations: 9.873 MB / 0.5099 GB, free: 64.73 MB / 362.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)