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.001361/0.001361, allocations: 110.9 kB / 17.74 MB, free: 5.359 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.001457/0.001457, allocations: 192.5 kB / 18.67 MB, free: 4.434 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.344/1.344, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1748/0.1748, allocations: 37.99 MB / 309.9 MB, free: 5.953 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.001322/0.001322, allocations: 63.91 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08574/0.08708, allocations: 55.24 MB / 487.8 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.009884/0.09699, allocations: 9.546 MB / 497.3 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005564/0.1026, allocations: 3.615 MB / 0.4892 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005757/0.1032, allocations: 31.81 kB / 0.4892 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002591/0.1058, allocations: 1.105 MB / 0.4903 GB, free: 9.977 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.002137/0.108, allocations: 0.8943 MB / 0.4912 GB, free: 9.078 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001161/0.1092, allocations: 467 kB / 0.4916 GB, free: 8.621 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002072/0.1113, allocations: 1.8 MB / 0.4934 GB, free: 6.816 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001165/0.1124, allocations: 0.9855 MB / 0.4944 GB, free: 5.809 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001051/0.1135, allocations: 0.7743 MB / 0.4951 GB, free: 5.031 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001115/0.1146, allocations: 0.8994 MB / 0.496 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001568/0.1148, allocations: 108 kB / 0.4961 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009704/0.1158, allocations: 0.5303 MB / 0.4966 GB, free: 3.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005442/0.1163, allocations: 0.6468 MB / 0.4972 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006692/0.117, allocations: 0.6998 MB / 0.4979 GB, free: 2.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001845/0.1189, allocations: 1.904 MB / 0.4998 GB, free: 236 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1189, allocations: 0 / 0.4998 GB, free: 236 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1189, allocations: 0 / 0.4998 GB, free: 236 kB / 382.1 MB Notification: Performance of Transformations before backend: time 2.088e-05/0.1189, allocations: 0 / 0.4998 GB, free: 236 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.002853/0.1218, allocations: 1.625 MB / 0.5014 GB, free: 14.55 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.1218, allocations: 15.83 kB / 0.5014 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001669/0.1235, allocations: 271 kB / 0.5016 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001896/0.1254, allocations: 0.9527 MB / 0.5026 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.555e-05/0.1255, allocations: 78.09 kB / 0.5027 GB, free: 13.19 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003097/0.1258, allocations: 135.9 kB / 0.5028 GB, free: 13.06 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002223/0.128, allocations: 1.489 MB / 0.5042 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.521e-05/0.1281, allocations: 7.938 kB / 0.5042 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001095/0.1282, allocations: 40 kB / 0.5043 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003092/0.1285, allocations: 102.2 kB / 0.5044 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001918/0.1304, allocations: 1.262 MB / 0.5056 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007497/0.1379, allocations: 5.629 MB / 0.5111 GB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008687/0.1388, allocations: 0.586 MB / 0.5117 GB, free: 3.508 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005247/0.1394, allocations: 399.3 kB / 0.5121 GB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.392e-05/0.1394, allocations: 8.562 kB / 0.5121 GB, free: 3.105 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.243e-05/0.1395, allocations: 43.11 kB / 0.5121 GB, free: 3.051 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.686e-06/0.1395, allocations: 0 / 0.5121 GB, free: 3.051 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.00709/0.1466, allocations: 3.634 MB / 0.5157 GB, free: 15.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.1466, allocations: 93.64 kB / 0.5158 GB, free: 15.14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008602/0.1475, allocations: 0.7351 MB / 0.5165 GB, free: 14.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.108e-05/0.1476, allocations: 41.7 kB / 0.5165 GB, free: 14.35 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003663/0.148, allocations: 0.5841 MB / 0.5171 GB, free: 13.75 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002106/0.1482, allocations: 272.1 kB / 0.5173 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000264/0.1485, allocations: 182.6 kB / 0.5175 GB, free: 13.3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.1486, allocations: 406.7 kB / 0.5179 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005615/0.1492, allocations: 385.8 kB / 0.5183 GB, free: 12.52 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007687/0.15, allocations: 0.6613 MB / 0.5189 GB, free: 11.74 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001409/0.1514, allocations: 1.144 MB / 0.52 GB, free: 10.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1514, allocations: 0 / 0.52 GB, free: 10.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003242/0.1547, allocations: 1.713 MB / 0.5217 GB, free: 8.738 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.1547, allocations: 12 kB / 0.5217 GB, free: 8.727 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002572/0.1573, allocations: 1.306 MB / 0.523 GB, free: 7.414 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001847/0.1591, allocations: 0.5844 MB / 0.5236 GB, free: 6.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006023/0.1598, allocations: 175.7 kB / 0.5237 GB, free: 6.648 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2122/0.3719, allocations: 10.34 MB / 0.5338 GB, free: 48.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008399/0.3728, allocations: 48.62 kB / 0.5339 GB, free: 48.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.062e-05/0.3729, allocations: 40.92 kB / 0.5339 GB, free: 48.17 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.0005678/0.3735, allocations: 392 kB / 0.5343 GB, free: 48.05 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/0.3736, allocations: 93.52 kB / 0.5344 GB, free: 48.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002224/0.3759, allocations: 1.235 MB / 0.5356 GB, free: 47.6 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.3759, allocations: 11.81 kB / 0.5356 GB, free: 47.6 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/0.3759, allocations: 4.344 kB / 0.5356 GB, free: 47.6 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.3759, allocations: 4.172 kB / 0.5356 GB, free: 47.6 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004447/0.3804, allocations: 2.404 MB / 0.5379 GB, free: 46.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-06/0.3804, allocations: 3.344 kB / 0.538 GB, free: 46.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004703/0.3809, allocations: 111.8 kB / 0.5381 GB, free: 46.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/0.382, allocations: 370.7 kB / 0.5384 GB, free: 46.49 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-05/0.3821, allocations: 30.53 kB / 0.5384 GB, free: 46.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00671/0.3888, allocations: 9.288 MB / 0.5475 GB, free: 38.41 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.982e-06/0.3888, allocations: 2.625 kB / 0.5475 GB, free: 38.41 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002762/0.3916, allocations: 1.682 MB / 0.5492 GB, free: 37.7 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005161/0.3921, allocations: 229 kB / 0.5494 GB, free: 37.56 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000147/0.3923, allocations: 30.98 kB / 0.5494 GB, free: 37.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000483/0.3928, allocations: 26.58 kB / 0.5494 GB, free: 37.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001728/0.393, allocations: 68.03 kB / 0.5495 GB, free: 37.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.141e-05/0.393, allocations: 28 kB / 0.5495 GB, free: 37.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007513/0.3938, allocations: 0.5072 MB / 0.55 GB, free: 37.31 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3938, allocations: 0 / 0.55 GB, free: 37.31 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001634/0.3954, allocations: 367.4 kB / 0.5504 GB, free: 37.28 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.0003479/0.3958, allocations: 144.2 kB / 0.5505 GB, free: 37.17 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002531/0.3983, allocations: 1.588 MB / 0.5521 GB, free: 36.34 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.3984, allocations: 1.375 kB / 0.5521 GB, free: 36.34 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001538/0.3999, allocations: 1.092 MB / 0.5531 GB, free: 35.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.4012, allocations: 204 kB / 0.5533 GB, free: 35.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004298/0.4055, allocations: 2.801 MB / 0.5561 GB, free: 34.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007767/0.4063, allocations: 1.25 MB / 0.5573 GB, free: 33.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002404/0.4065, allocations: 81.3 kB / 0.5574 GB, free: 33.27 MB / 414.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4065, allocations: 0 / 0.5574 GB, free: 33.27 MB / 414.1 MB Notification: Performance of Templates: time 0.02995/0.4365, allocations: 32.98 MB / 0.5896 GB, free: 5.012 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)