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.00144/0.00144, allocations: 116.6 kB / 17.75 MB, free: 5.223 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.001584/0.001584, allocations: 181.4 kB / 18.67 MB, free: 4.309 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.387/1.387, allocations: 205.1 MB / 224.6 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1793/0.1793, allocations: 37.98 MB / 309.9 MB, free: 5.973 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.001476/0.001476, allocations: 76.45 kB / 432.6 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1036, allocations: 55.24 MB / 487.8 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01082/0.1144, allocations: 9.553 MB / 497.4 MB, free: 14.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005731/0.1202, allocations: 3.611 MB / 0.4892 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005069/0.1207, allocations: 31.81 kB / 0.4893 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002575/0.1233, allocations: 1.105 MB / 0.4903 GB, free: 9.996 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.001852/0.1252, allocations: 0.8943 MB / 0.4912 GB, free: 9.098 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001052/0.1262, allocations: 467 kB / 0.4916 GB, free: 8.641 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001838/0.1281, allocations: 1.812 MB / 0.4934 GB, free: 6.824 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001079/0.1292, allocations: 0.9699 MB / 0.4944 GB, free: 5.832 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000876/0.1301, allocations: 0.7782 MB / 0.4951 GB, free: 5.051 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001068/0.1312, allocations: 0.9033 MB / 0.496 GB, free: 4.145 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001605/0.1313, allocations: 104 kB / 0.4961 GB, free: 4.043 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009154/0.1322, allocations: 0.5303 MB / 0.4966 GB, free: 3.512 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005456/0.1328, allocations: 0.6507 MB / 0.4973 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006558/0.1335, allocations: 0.692 MB / 0.4979 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00191/0.1354, allocations: 1.904 MB / 0.4998 GB, free: 260 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1354, allocations: 4 kB / 0.4998 GB, free: 256 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1354, allocations: 3.938 kB / 0.4998 GB, free: 252 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.698e-05/0.1354, allocations: 0 / 0.4998 GB, free: 252 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.003326/0.1388, allocations: 1.625 MB / 0.5014 GB, free: 14.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.815e-05/0.1388, allocations: 11.89 kB / 0.5014 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0017/0.1405, allocations: 275 kB / 0.5017 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002087/0.1426, allocations: 0.9488 MB / 0.5026 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.873e-05/0.1427, allocations: 78.09 kB / 0.5027 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003029/0.143, allocations: 139.9 kB / 0.5028 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002067/0.1451, allocations: 1.493 MB / 0.5043 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.555e-05/0.1452, allocations: 4 kB / 0.5043 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.1453, allocations: 40 kB / 0.5043 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002842/0.1456, allocations: 102.2 kB / 0.5044 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0019/0.1475, allocations: 1.254 MB / 0.5056 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008079/0.1556, allocations: 5.625 MB / 0.5111 GB, free: 4.137 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000894/0.1565, allocations: 0.5938 MB / 0.5117 GB, free: 3.527 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005207/0.157, allocations: 399.3 kB / 0.5121 GB, free: 3.133 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.917e-05/0.1571, allocations: 8.562 kB / 0.5121 GB, free: 3.125 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/0.1571, allocations: 43.06 kB / 0.5121 GB, free: 3.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 3.757e-06/0.1571, allocations: 4 kB / 0.5121 GB, free: 3.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.007064/0.1642, allocations: 3.634 MB / 0.5157 GB, free: 15.27 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.337e-05/0.1643, allocations: 89.7 kB / 0.5158 GB, free: 15.17 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008584/0.1652, allocations: 0.7351 MB / 0.5165 GB, free: 14.42 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.238e-05/0.1652, allocations: 49.72 kB / 0.5165 GB, free: 14.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003833/0.1656, allocations: 0.5802 MB / 0.5171 GB, free: 13.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000207/0.1658, allocations: 272.1 kB / 0.5174 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00026/0.1661, allocations: 178.6 kB / 0.5175 GB, free: 13.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.1663, allocations: 410.7 kB / 0.5179 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005723/0.1669, allocations: 385.8 kB / 0.5183 GB, free: 12.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007838/0.1676, allocations: 0.6613 MB / 0.5189 GB, free: 11.76 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001446/0.1691, allocations: 1.144 MB / 0.52 GB, free: 10.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.1691, allocations: 4 kB / 0.52 GB, free: 10.49 MB / 414.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003255/0.1724, allocations: 1.701 MB / 0.5217 GB, free: 8.766 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.1724, allocations: 12 kB / 0.5217 GB, free: 8.754 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002564/0.175, allocations: 1.314 MB / 0.523 GB, free: 7.434 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001847/0.1768, allocations: 0.5807 MB / 0.5236 GB, free: 6.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005892/0.1774, allocations: 175.7 kB / 0.5237 GB, free: 6.668 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2401/0.4175, allocations: 10.33 MB / 0.5338 GB, free: 48.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008732/0.4185, allocations: 51.95 kB / 0.5339 GB, free: 48.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-05/0.4186, allocations: 46.75 kB / 0.5339 GB, free: 48.18 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.0006517/0.4192, allocations: 377.5 kB / 0.5343 GB, free: 48.06 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001452/0.4194, allocations: 89.55 kB / 0.5344 GB, free: 48.06 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002293/0.4217, allocations: 1.252 MB / 0.5356 GB, free: 47.63 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/0.4217, allocations: 5.75 kB / 0.5356 GB, free: 47.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.4217, allocations: 0.8906 kB / 0.5356 GB, free: 47.63 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000381/0.4221, allocations: 231.4 kB / 0.5358 GB, free: 47.51 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001204/0.4222, allocations: 25.16 kB / 0.5358 GB, free: 47.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004404/0.4227, allocations: 32.61 kB / 0.5359 GB, free: 47.49 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.4228, allocations: 64.25 kB / 0.5359 GB, free: 47.48 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003168/0.426, allocations: 1.482 MB / 0.5374 GB, free: 46.97 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001979/0.428, allocations: 1.575 MB / 0.5389 GB, free: 46.31 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005838/0.4286, allocations: 408.9 kB / 0.5393 GB, free: 46.19 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006555/0.4292, allocations: 0.5043 MB / 0.5398 GB, free: 45.98 MB / 414.1 MB Notification: Performance of Backend: time 2.8e-07/0.4293, allocations: 0.6562 kB / 0.5398 GB, free: 45.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003021/0.4323, allocations: 1.521 MB / 0.5413 GB, free: 45.2 MB / 414.1 MB Notification: Performance of SimCode: time 0.004242/0.4365, allocations: 3.098 MB / 0.5443 GB, free: 43.46 MB / 414.1 MB Notification: Performance of Templates: time 0.02522/0.4618, allocations: 17.52 MB / 0.5614 GB, free: 34.79 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)