Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.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.TurbineGenerator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator") translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 112.3 kB / 17.74 MB, free: 5.34 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.001695/0.001695, allocations: 187 kB / 18.67 MB, free: 4.414 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.349/1.349, allocations: 205.1 MB / 224.5 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.1827/0.1827, allocations: 37.99 MB / 309.9 MB, free: 5.941 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.001343/0.001343, allocations: 63.91 kB / 432.5 MB, free: 15.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09103/0.09238, allocations: 55.24 MB / 487.8 MB, free: 8.32 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.008835/0.1013, allocations: 7.521 MB / 495.3 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004719/0.106, allocations: 3.022 MB / 498.3 MB, free: 13.72 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005632/0.1066, allocations: 23.88 kB / 498.4 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002006/0.1087, allocations: 0.7506 MB / 499.1 MB, free: 12.95 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.001766/0.1105, allocations: 0.6881 MB / 499.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009278/0.1114, allocations: 367.2 kB / 0.4884 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001823/0.1132, allocations: 1.352 MB / 0.4897 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009698/0.1142, allocations: 0.713 MB / 0.4904 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008739/0.1151, allocations: 0.5604 MB / 0.491 GB, free: 9.254 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001012/0.1161, allocations: 0.6307 MB / 0.4916 GB, free: 8.621 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001643/0.1163, allocations: 72 kB / 0.4917 GB, free: 8.551 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008863/0.1172, allocations: 487.2 kB / 0.4921 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004773/0.1177, allocations: 450.8 kB / 0.4926 GB, free: 7.633 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007855/0.1185, allocations: 0.5054 MB / 0.4931 GB, free: 7.125 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0017/0.1202, allocations: 1.417 MB / 0.4944 GB, free: 5.703 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1202, allocations: 0 / 0.4944 GB, free: 5.703 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.498e-06/0.1202, allocations: 4 kB / 0.4945 GB, free: 5.699 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.364e-05/0.1203, allocations: 3.938 kB / 0.4945 GB, free: 5.695 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002687/0.123, allocations: 1.281 MB / 0.4957 GB, free: 4.359 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.123, allocations: 15.89 kB / 0.4957 GB, free: 4.344 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001287/0.1243, allocations: 199.6 kB / 0.4959 GB, free: 4.148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001505/0.1258, allocations: 0.7487 MB / 0.4966 GB, free: 3.363 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.99e-05/0.1259, allocations: 62.36 kB / 0.4967 GB, free: 3.301 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00023/0.1261, allocations: 95.83 kB / 0.4968 GB, free: 3.207 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001703/0.1278, allocations: 1.1 MB / 0.4979 GB, free: 2.062 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.169e-05/0.1279, allocations: 3.938 kB / 0.4979 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.87e-05/0.128, allocations: 39.98 kB / 0.4979 GB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001575/0.1281, allocations: 73.95 kB / 0.498 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/0.1295, allocations: 0.8665 MB / 0.4988 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005197/0.1347, allocations: 3.969 MB / 0.5027 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005999/0.1354, allocations: 439.7 kB / 0.5031 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003687/0.1357, allocations: 283 kB / 0.5034 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.477e-05/0.1358, allocations: 4.438 kB / 0.5034 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.1358, allocations: 38.94 kB / 0.5034 GB, free: 12.11 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.174e-06/0.1358, allocations: 4 kB / 0.5034 GB, free: 12.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.002979/0.1388, allocations: 1.721 MB / 0.5051 GB, free: 10.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.035e-05/0.1389, allocations: 81.55 kB / 0.5052 GB, free: 10.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006861/0.1396, allocations: 0.586 MB / 0.5058 GB, free: 9.637 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.032e-05/0.1396, allocations: 41.64 kB / 0.5058 GB, free: 9.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003124/0.14, allocations: 470.6 kB / 0.5063 GB, free: 9.121 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/0.1401, allocations: 185.4 kB / 0.5064 GB, free: 8.938 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001985/0.1403, allocations: 142.5 kB / 0.5066 GB, free: 8.789 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.1405, allocations: 382.8 kB / 0.5069 GB, free: 8.406 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004082/0.1409, allocations: 249.8 kB / 0.5072 GB, free: 8.164 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005324/0.1415, allocations: 481 kB / 0.5076 GB, free: 7.602 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009728/0.1424, allocations: 0.7664 MB / 0.5084 GB, free: 6.742 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.1424, allocations: 4 kB / 0.5084 GB, free: 6.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00204/0.1445, allocations: 1.119 MB / 0.5095 GB, free: 5.586 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.1445, allocations: 8 kB / 0.5095 GB, free: 5.578 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001489/0.146, allocations: 0.7988 MB / 0.5103 GB, free: 4.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007115/0.1468, allocations: 218.4 kB / 0.5105 GB, free: 4.527 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005179/0.1473, allocations: 151.7 kB / 0.5106 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006041/0.1533, allocations: 5.677 MB / 0.5162 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005926/0.154, allocations: 35.89 kB / 0.5162 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.441e-05/0.1541, allocations: 35.98 kB / 0.5162 GB, free: 14.2 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0005368/0.1546, allocations: 305.5 kB / 0.5165 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/0.1548, allocations: 71.16 kB / 0.5166 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001023/0.1558, allocations: 0.6007 MB / 0.5172 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.1558, allocations: 8 kB / 0.5172 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1558, allocations: 0 / 0.5172 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.1559, allocations: 3.984 kB / 0.5172 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002606/0.1585, allocations: 1.498 MB / 0.5187 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/0.1585, allocations: 0 / 0.5187 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006227/0.1591, allocations: 123.8 kB / 0.5188 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.204e-05/0.1592, allocations: 8.156 kB / 0.5188 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.246e-05/0.1592, allocations: 19.92 kB / 0.5188 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.825e-06/0.1592, allocations: 4 kB / 0.5188 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.1592, allocations: 4 kB / 0.5188 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.1605, allocations: 0.9282 MB / 0.5197 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000319/0.1609, allocations: 184.2 kB / 0.5199 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001381/0.161, allocations: 19.98 kB / 0.5199 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003858/0.1614, allocations: 15.98 kB / 0.5199 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.979e-05/0.1615, allocations: 32.39 kB / 0.52 GB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.781e-05/0.1615, allocations: 16 kB / 0.52 GB, free: 10.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005503/0.1621, allocations: 423 kB / 0.5204 GB, free: 9.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.523e-06/0.1621, allocations: 0 / 0.5204 GB, free: 9.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000962/0.163, allocations: 239.9 kB / 0.5206 GB, free: 9.586 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (54): * Single equations (assignments): 53 * 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.0003464/0.1634, allocations: 131.4 kB / 0.5207 GB, free: 9.449 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001899/0.1653, allocations: 1.046 MB / 0.5217 GB, free: 8.363 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.1653, allocations: 3.938 kB / 0.5217 GB, free: 8.359 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003772/0.1657, allocations: 266.2 kB / 0.522 GB, free: 8.098 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.1667, allocations: 155.4 kB / 0.5222 GB, free: 7.945 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00374/0.1705, allocations: 2.108 MB / 0.5242 GB, free: 5.781 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008143/0.1713, allocations: 1.082 MB / 0.5253 GB, free: 4.668 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002353/0.1716, allocations: 63.42 kB / 0.5253 GB, free: 4.605 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1716, allocations: 0 / 0.5253 GB, free: 4.605 MB / 414.1 MB Notification: Performance of Templates: time 0.2189/0.3905, allocations: 15.42 MB / 0.5404 GB, free: 47.89 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1)