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.001102/0.001102, allocations: 112.2 kB / 17.74 MB, free: 5.344 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.001073/0.001073, allocations: 187.1 kB / 18.67 MB, free: 4.422 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.314/1.314, 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.1778/0.1778, allocations: 37.98 MB / 309.9 MB, free: 5.965 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.001378/0.001378, allocations: 67.91 kB / 432.6 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09356/0.09495, allocations: 55.24 MB / 487.8 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.009988/0.105, allocations: 9.553 MB / 497.3 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005805/0.1108, allocations: 3.611 MB / 0.4892 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007475/0.1116, allocations: 35.81 kB / 0.4892 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002803/0.1144, allocations: 1.108 MB / 0.4903 GB, free: 9.969 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.002323/0.1168, allocations: 0.8865 MB / 0.4912 GB, free: 9.078 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00131/0.1181, allocations: 479 kB / 0.4916 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00236/0.1205, allocations: 1.796 MB / 0.4934 GB, free: 6.809 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001235/0.1217, allocations: 0.9777 MB / 0.4944 GB, free: 5.809 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001149/0.1229, allocations: 0.7782 MB / 0.4951 GB, free: 5.027 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001256/0.1242, allocations: 0.9033 MB / 0.496 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001805/0.1244, allocations: 108 kB / 0.4961 GB, free: 4.016 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009867/0.1254, allocations: 0.5343 MB / 0.4966 GB, free: 3.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005424/0.1259, allocations: 0.6429 MB / 0.4973 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007863/0.1267, allocations: 0.6959 MB / 0.4979 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00213/0.1289, allocations: 1.904 MB / 0.4998 GB, free: 232 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1289, allocations: 0 / 0.4998 GB, free: 232 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1289, allocations: 0 / 0.4998 GB, free: 232 kB / 382.1 MB Notification: Performance of Transformations before backend: time 2.825e-05/0.1289, allocations: 0 / 0.4998 GB, free: 232 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.00295/0.1319, allocations: 1.625 MB / 0.5014 GB, free: 14.55 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.1319, allocations: 15.89 kB / 0.5014 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001632/0.1336, allocations: 271 kB / 0.5017 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001815/0.1354, allocations: 0.9488 MB / 0.5026 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.789e-05/0.1355, allocations: 82.09 kB / 0.5027 GB, free: 13.19 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003022/0.1358, allocations: 135.9 kB / 0.5028 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00226/0.1381, allocations: 1.489 MB / 0.5042 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.699e-05/0.1381, allocations: 4 kB / 0.5042 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/0.1382, allocations: 44 kB / 0.5043 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003173/0.1386, allocations: 98.16 kB / 0.5044 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001918/0.1405, allocations: 1.262 MB / 0.5056 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007462/0.148, allocations: 5.629 MB / 0.5111 GB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008796/0.1489, allocations: 0.5899 MB / 0.5117 GB, free: 3.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005096/0.1494, allocations: 395.3 kB / 0.5121 GB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.692e-05/0.1495, allocations: 12.56 kB / 0.5121 GB, free: 3.102 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.314e-05/0.1495, allocations: 47.05 kB / 0.5121 GB, free: 3.043 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.505e-06/0.1495, allocations: 0 / 0.5121 GB, free: 3.043 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.00723/0.1568, allocations: 3.634 MB / 0.5157 GB, free: 15.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.615e-05/0.1569, allocations: 85.7 kB / 0.5158 GB, free: 15.14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008381/0.1577, allocations: 0.739 MB / 0.5165 GB, free: 14.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.329e-05/0.1578, allocations: 37.7 kB / 0.5165 GB, free: 14.35 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003862/0.1582, allocations: 0.588 MB / 0.5171 GB, free: 13.75 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002113/0.1584, allocations: 264.2 kB / 0.5173 GB, free: 13.49 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002517/0.1586, allocations: 186.4 kB / 0.5175 GB, free: 13.3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.1588, allocations: 406.8 kB / 0.5179 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005606/0.1594, allocations: 393.7 kB / 0.5183 GB, free: 12.51 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009278/0.1603, allocations: 0.6613 MB / 0.5189 GB, free: 11.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001527/0.1619, allocations: 1.136 MB / 0.52 GB, free: 10.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.1619, allocations: 8 kB / 0.52 GB, free: 10.47 MB / 414.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003325/0.1652, allocations: 1.706 MB / 0.5217 GB, free: 8.738 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/0.1653, allocations: 12.03 kB / 0.5217 GB, free: 8.727 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002559/0.1678, allocations: 1.309 MB / 0.523 GB, free: 7.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001886/0.1697, allocations: 0.5883 MB / 0.5236 GB, free: 6.812 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006479/0.1704, allocations: 175.7 kB / 0.5237 GB, free: 6.641 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.216/0.3864, allocations: 10.33 MB / 0.5338 GB, free: 48.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008636/0.3873, allocations: 46.06 kB / 0.5339 GB, free: 48.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.621e-05/0.3874, allocations: 41.95 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.0005647/0.388, allocations: 383.8 kB / 0.5343 GB, free: 48.05 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001413/0.3881, allocations: 95.11 kB / 0.5344 GB, free: 48.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002189/0.3903, allocations: 1.244 MB / 0.5356 GB, free: 47.6 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.3903, allocations: 7.938 kB / 0.5356 GB, free: 47.6 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.3903, allocations: 4.938 kB / 0.5356 GB, free: 47.6 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.3904, allocations: 4.656 kB / 0.5356 GB, free: 47.6 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00405/0.3944, allocations: 2.404 MB / 0.5379 GB, free: 46.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.3945, allocations: 5.141 kB / 0.538 GB, free: 46.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004643/0.3949, allocations: 109.3 kB / 0.5381 GB, free: 46.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001079/0.396, allocations: 371.6 kB / 0.5384 GB, free: 46.48 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.62e-05/0.3961, allocations: 28.06 kB / 0.5384 GB, free: 46.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006711/0.4028, allocations: 9.288 MB / 0.5475 GB, free: 38.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.962e-06/0.4029, allocations: 6.062 kB / 0.5475 GB, free: 38.4 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002708/0.4056, allocations: 1.681 MB / 0.5492 GB, free: 37.69 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003961/0.406, allocations: 230.1 kB / 0.5494 GB, free: 37.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001373/0.4061, allocations: 32.56 kB / 0.5494 GB, free: 37.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004591/0.4066, allocations: 28.25 kB / 0.5494 GB, free: 37.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.4068, allocations: 65.78 kB / 0.5495 GB, free: 37.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.874e-05/0.4068, allocations: 23.88 kB / 0.5495 GB, free: 37.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000663/0.4075, allocations: 0.5033 MB / 0.55 GB, free: 37.31 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4075, allocations: 4.969 kB / 0.55 GB, free: 37.31 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001467/0.409, allocations: 367.3 kB / 0.5504 GB, free: 37.27 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.0003224/0.4093, allocations: 141.1 kB / 0.5505 GB, free: 37.17 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002348/0.4117, allocations: 1.59 MB / 0.5521 GB, free: 36.34 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.319e-06/0.4117, allocations: 0 / 0.5521 GB, free: 36.34 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001419/0.4131, allocations: 1.091 MB / 0.5531 GB, free: 35.6 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.4142, allocations: 207.4 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.004076/0.4183, allocations: 2.791 MB / 0.556 GB, free: 34.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007483/0.4191, allocations: 1.258 MB / 0.5573 GB, free: 33.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002094/0.4193, allocations: 75.12 kB / 0.5573 GB, free: 33.29 MB / 414.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4193, allocations: 0 / 0.5573 GB, free: 33.29 MB / 414.1 MB Notification: Performance of Templates: time 0.02955/0.4489, allocations: 32.83 MB / 0.5894 GB, free: 5.191 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)