Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TurbineGeneratorLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine") translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 110.3 kB / 17.06 MB, free: 6.129 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.00156/0.00156, allocations: 191 kB / 18 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.589/1.589, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1863/0.1863, allocations: 37.98 MB / 309.2 MB, free: 5.957 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 67.89 kB / 431.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1348, allocations: 55.25 MB / 487.1 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01541/0.1502, allocations: 9.542 MB / 496.7 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009055/0.1593, allocations: 3.611 MB / 0.4886 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001349/0.1607, allocations: 35.81 kB / 0.4886 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003896/0.1647, allocations: 1.101 MB / 0.4897 GB, free: 9.984 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.004/0.1687, allocations: 0.8981 MB / 0.4905 GB, free: 9.082 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002219/0.1709, allocations: 471 kB / 0.491 GB, free: 8.621 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003742/0.1747, allocations: 1.808 MB / 0.4928 GB, free: 6.809 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001787/0.1765, allocations: 0.9777 MB / 0.4937 GB, free: 5.809 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001799/0.1783, allocations: 0.7743 MB / 0.4945 GB, free: 5.031 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001689/0.18, allocations: 0.9033 MB / 0.4953 GB, free: 4.125 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002278/0.1803, allocations: 104 kB / 0.4954 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001496/0.1818, allocations: 0.5304 MB / 0.496 GB, free: 3.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008554/0.1826, allocations: 0.6468 MB / 0.4966 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001018/0.1837, allocations: 0.6959 MB / 0.4973 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00284/0.1865, allocations: 1.904 MB / 0.4991 GB, free: 240 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.1866, allocations: 0 / 0.4991 GB, free: 240 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1866, allocations: 0 / 0.4991 GB, free: 240 kB / 382.1 MB Notification: Performance of Transformations before backend: time 2.088e-05/0.1866, allocations: 0 / 0.4991 GB, free: 240 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.004053/0.1907, allocations: 1.625 MB / 0.5007 GB, free: 14.55 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.695e-05/0.1907, allocations: 11.89 kB / 0.5007 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002254/0.193, allocations: 271 kB / 0.501 GB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002581/0.1956, allocations: 0.9527 MB / 0.5019 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.417e-05/0.1957, allocations: 78.09 kB / 0.502 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004258/0.1961, allocations: 135.9 kB / 0.5021 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002832/0.199, allocations: 1.489 MB / 0.5036 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.018e-05/0.199, allocations: 11.94 kB / 0.5036 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.591e-05/0.1991, allocations: 36 kB / 0.5036 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002825/0.1994, allocations: 106.2 kB / 0.5037 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001879/0.2013, allocations: 1.254 MB / 0.505 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007336/0.2087, allocations: 5.629 MB / 0.5104 GB, free: 4.121 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008681/0.2096, allocations: 0.5938 MB / 0.511 GB, free: 3.512 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000512/0.2101, allocations: 399.3 kB / 0.5114 GB, free: 3.117 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.645e-05/0.2102, allocations: 8.562 kB / 0.5114 GB, free: 3.109 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.698e-05/0.2102, allocations: 35.12 kB / 0.5115 GB, free: 3.062 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 3.065e-06/0.2102, allocations: 4 kB / 0.5115 GB, free: 3.059 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.007153/0.2174, allocations: 3.638 MB / 0.515 GB, free: 15.26 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.814e-05/0.2175, allocations: 93.64 kB / 0.5151 GB, free: 15.15 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008807/0.2184, allocations: 0.7351 MB / 0.5158 GB, free: 14.4 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.189e-05/0.2184, allocations: 37.7 kB / 0.5159 GB, free: 14.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003803/0.2188, allocations: 0.5841 MB / 0.5164 GB, free: 13.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002078/0.219, allocations: 272.1 kB / 0.5167 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000248/0.2193, allocations: 182.6 kB / 0.5169 GB, free: 13.31 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002367/0.2195, allocations: 402.7 kB / 0.5172 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005696/0.2201, allocations: 393.7 kB / 0.5176 GB, free: 12.53 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007812/0.2209, allocations: 0.6613 MB / 0.5183 GB, free: 11.75 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00158/0.2225, allocations: 1.144 MB / 0.5194 GB, free: 10.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.2225, allocations: 7.938 kB / 0.5194 GB, free: 10.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003509/0.226, allocations: 1.717 MB / 0.5211 GB, free: 8.734 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.938e-05/0.226, allocations: 8 kB / 0.5211 GB, free: 8.727 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002633/0.2287, allocations: 1.302 MB / 0.5223 GB, free: 7.418 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001928/0.2306, allocations: 0.5885 MB / 0.5229 GB, free: 6.816 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006195/0.2313, allocations: 171.7 kB / 0.5231 GB, free: 6.648 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2581/0.4894, allocations: 10.34 MB / 0.5332 GB, free: 48.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/0.4905, allocations: 49.22 kB / 0.5332 GB, free: 48.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.727e-05/0.4906, allocations: 42 kB / 0.5333 GB, free: 48.21 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (93): * 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: 4 * 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,4,100.0%), (2,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0007762/0.4914, allocations: 383.9 kB / 0.5336 GB, free: 48.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/0.4916, allocations: 95.34 kB / 0.5337 GB, free: 48.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002802/0.4944, allocations: 1.236 MB / 0.5349 GB, free: 47.64 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.4944, allocations: 10.34 kB / 0.5349 GB, free: 47.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.4945, allocations: 5.25 kB / 0.5349 GB, free: 47.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.55e-05/0.4945, allocations: 3.797 kB / 0.5349 GB, free: 47.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004733/0.4992, allocations: 2.408 MB / 0.5373 GB, free: 46.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.4993, allocations: 3.281 kB / 0.5373 GB, free: 46.63 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005168/0.4998, allocations: 109.2 kB / 0.5374 GB, free: 46.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001224/0.501, allocations: 374.9 kB / 0.5378 GB, free: 46.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.632e-05/0.5011, allocations: 26.11 kB / 0.5378 GB, free: 46.51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007342/0.5085, allocations: 9.286 MB / 0.5469 GB, free: 38.45 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/0.5085, allocations: 2.625 kB / 0.5469 GB, free: 38.45 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003037/0.5115, allocations: 1.685 MB / 0.5485 GB, free: 37.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005538/0.5121, allocations: 233.9 kB / 0.5487 GB, free: 37.6 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/0.5123, allocations: 27.67 kB / 0.5488 GB, free: 37.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004591/0.5127, allocations: 25.38 kB / 0.5488 GB, free: 37.58 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001942/0.5129, allocations: 67.16 kB / 0.5488 GB, free: 37.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.018e-05/0.513, allocations: 22.45 kB / 0.5489 GB, free: 37.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007642/0.5138, allocations: 0.5111 MB / 0.5494 GB, free: 37.35 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5138, allocations: 1.25 kB / 0.5494 GB, free: 37.35 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001696/0.5155, allocations: 363.8 kB / 0.5497 GB, free: 37.32 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 8 (turboGrp.phi,turboGrp.w,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 (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,10,100.0%), (1,3,100.0%), (1,3,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000417/0.5159, allocations: 142.7 kB / 0.5498 GB, free: 37.22 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003333/0.5192, allocations: 1.588 MB / 0.5514 GB, free: 36.38 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-05/0.5193, allocations: 1.625 kB / 0.5514 GB, free: 36.38 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001985/0.5213, allocations: 1.096 MB / 0.5525 GB, free: 35.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00149/0.5228, allocations: 209.7 kB / 0.5527 GB, free: 35.56 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005026/0.5278, allocations: 2.697 MB / 0.5553 GB, free: 34.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009459/0.5288, allocations: 1.255 MB / 0.5565 GB, free: 33.4 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006462/0.5294, allocations: 213.7 kB / 0.5567 GB, free: 33.36 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001634/0.5296, allocations: 74.55 kB / 0.5568 GB, free: 33.35 MB / 414.1 MB Notification: Performance of SimCode: time 1.964e-06/0.5296, allocations: 0 / 0.5568 GB, free: 33.35 MB / 414.1 MB Notification: Performance of Templates: time 0.0235/0.5531, allocations: 15.59 MB / 0.572 GB, free: 22.36 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1)