Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008275/0.0008274, allocations: 91.69 kB / 16.65 MB, free: 6.59 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.001033/0.001032, allocations: 182 kB / 17.56 MB, free: 6.203 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.367/1.367, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.183/0.183, allocations: 38.07 MB / 330.8 MB, free: 8.453 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000313/0.000313, allocations: 8 kB / 400.7 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1244, allocations: 59.15 MB / 459.9 MB, free: 7.035 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01113/0.1356, allocations: 9.956 MB / 469.8 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007375/0.143, allocations: 3.588 MB / 473.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00189/0.1449, allocations: 63.62 kB / 473.5 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001058/0.146, allocations: 274.2 kB / 473.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002484/0.1485, allocations: 0.7272 MB / 474.5 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.1496, allocations: 425.4 kB / 474.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003065/0.1526, allocations: 2.428 MB / 477.3 MB, free: 5.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001705/0.1544, allocations: 1.009 MB / 478.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001268/0.1556, allocations: 0.583 MB / 478.9 MB, free: 3.867 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001326/0.157, allocations: 0.7508 MB / 479.7 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.1571, allocations: 56 kB / 479.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006633/0.1578, allocations: 295.5 kB / 480 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004183/0.1582, allocations: 402.7 kB / 480.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000614/0.1588, allocations: 0.6195 MB / 481 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001834/0.1607, allocations: 1.83 MB / 482.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1607, allocations: 0 / 482.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1607, allocations: 4 kB / 482.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.331e-05/0.1607, allocations: 0 / 482.8 MB, free: 15.9 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: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.002868/0.1636, allocations: 1.406 MB / 484.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.1637, allocations: 8.031 kB / 484.3 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000709/0.1644, allocations: 187.2 kB / 484.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001568/0.166, allocations: 0.9186 MB / 485.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.814e-05/0.166, allocations: 82.05 kB / 485.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002664/0.1663, allocations: 116 kB / 485.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002178/0.1685, allocations: 1.345 MB / 486.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.589e-05/0.1686, allocations: 11.92 kB / 486.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001084/0.1687, allocations: 43.98 kB / 486.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000102/0.1688, allocations: 65.98 kB / 487 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002024/0.1708, allocations: 1.085 MB / 488.1 MB, free: 10.47 MB / 366.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.0008318498358936397 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007135/0.178, allocations: 5.154 MB / 493.3 MB, free: 5.078 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.1793, allocations: 0.7687 MB / 494 MB, free: 4.262 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005106/0.1798, allocations: 344.2 kB / 494.4 MB, free: 3.918 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.54e-05/0.1799, allocations: 12.56 kB / 494.4 MB, free: 3.902 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.846e-05/0.1799, allocations: 43.11 kB / 494.4 MB, free: 3.852 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.355e-06/0.1799, allocations: 0 / 494.4 MB, free: 3.852 MB / 366.1 MB Notification: Performance of matching and sorting (n=71): time 0.00564/0.1856, allocations: 2.702 MB / 497.1 MB, free: 1.055 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.508e-05/0.1857, allocations: 137.1 kB / 497.2 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009466/0.1866, allocations: 0.7587 MB / 498 MB, free: 120 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.949e-05/0.1867, allocations: 33.7 kB / 498 MB, free: 80 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005026/0.1872, allocations: 0.5767 MB / 498.6 MB, free: 15.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000199/0.1874, allocations: 248.4 kB / 498.9 MB, free: 15.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.1875, allocations: 77.67 kB / 498.9 MB, free: 15.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000201/0.1877, allocations: 341.9 kB / 499.3 MB, free: 14.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004956/0.1882, allocations: 289.8 kB / 499.6 MB, free: 14.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008051/0.189, allocations: 0.5529 MB / 0.4884 GB, free: 13.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001254/0.1903, allocations: 0.9092 MB / 0.4893 GB, free: 12.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.1903, allocations: 7.938 kB / 0.4893 GB, free: 12.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002823/0.1931, allocations: 1.379 MB / 0.4906 GB, free: 11.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002006/0.1934, allocations: 322 kB / 0.4909 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.1934, allocations: 8 kB / 0.4909 GB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001355/0.1947, allocations: 428.4 kB / 0.4913 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006028/0.1954, allocations: 163.8 kB / 0.4915 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007793/0.2032, allocations: 4.935 MB / 0.4963 GB, free: 5.371 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006985/0.2039, allocations: 35.98 kB / 0.4964 GB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-05/0.204, allocations: 43.98 kB / 0.4964 GB, free: 5.293 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/0.204, allocations: 6.031 kB / 0.4964 GB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002443/0.2064, allocations: 1.152 MB / 0.4975 GB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.2065, allocations: 8 kB / 0.4975 GB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001298/0.2078, allocations: 408.8 kB / 0.4979 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006224/0.2084, allocations: 167.8 kB / 0.4981 GB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2291/0.4376, allocations: 4.624 MB / 0.5026 GB, free: 52.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001201/0.4388, allocations: 33.8 kB / 0.5026 GB, free: 52.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002803/0.4391, allocations: 39.33 kB / 0.5027 GB, free: 52.03 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * 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 {(7,25)} Notification: Performance of prepare postOptimizeDAE: time 0.001239/0.4404, allocations: 442.8 kB / 0.5031 GB, free: 51.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003931/0.4408, allocations: 93.81 kB / 0.5032 GB, free: 51.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002153/0.4429, allocations: 0.879 MB / 0.504 GB, free: 51.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.443, allocations: 8.5 kB / 0.5041 GB, free: 51.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.443, allocations: 0.9688 kB / 0.5041 GB, free: 51.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.443, allocations: 5.109 kB / 0.5041 GB, free: 51.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003331/0.4463, allocations: 1.876 MB / 0.5059 GB, free: 51.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.4464, allocations: 1.062 kB / 0.5059 GB, free: 51.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008509/0.4472, allocations: 169.7 kB / 0.5061 GB, free: 51.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.987e-06/0.4472, allocations: 4.281 kB / 0.5061 GB, free: 51.37 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.634e-05/0.4473, allocations: 18.64 kB / 0.5061 GB, free: 51.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.661e-06/0.4473, allocations: 5.656 kB / 0.5061 GB, free: 51.37 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.4473, allocations: 1.953 kB / 0.5061 GB, free: 51.37 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001805/0.4491, allocations: 1.28 MB / 0.5073 GB, free: 50.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003397/0.4495, allocations: 229.1 kB / 0.5075 GB, free: 50.76 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.4496, allocations: 14.59 kB / 0.5076 GB, free: 50.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004933/0.4501, allocations: 33.33 kB / 0.5076 GB, free: 50.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.4502, allocations: 44.92 kB / 0.5076 GB, free: 50.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.913e-05/0.4503, allocations: 22.09 kB / 0.5077 GB, free: 50.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007241/0.451, allocations: 0.511 MB / 0.5082 GB, free: 50.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.451, allocations: 0 / 0.5082 GB, free: 50.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001767/0.4528, allocations: 473.3 kB / 0.5086 GB, free: 50.46 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * 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 (77): * Single equations (assignments): 76 * 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.0002967/0.4531, allocations: 144.7 kB / 0.5087 GB, free: 50.37 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003793/0.4569, allocations: 1.912 MB / 0.5106 GB, free: 49.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.4569, allocations: 1.156 kB / 0.5106 GB, free: 49.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005522/0.4575, allocations: 362.7 kB / 0.511 GB, free: 49.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/0.4589, allocations: 230.9 kB / 0.5112 GB, free: 49.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0044/0.4633, allocations: 3.138 MB / 0.5142 GB, free: 47.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000867/0.4642, allocations: 1.203 MB / 0.5154 GB, free: 46.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001013/0.4652, allocations: 242.9 kB / 0.5157 GB, free: 46.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002167/0.4654, allocations: 72.16 kB / 0.5157 GB, free: 46.77 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4654, allocations: 0 / 0.5157 GB, free: 46.77 MB / 382.1 MB Notification: Performance of Templates: time 0.02641/0.4918, allocations: 16.86 MB / 0.5322 GB, free: 37.98 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)