Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.TurboGeneratorLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine") translateModel(PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008831/0.0008832, allocations: 91.53 kB / 16.65 MB, free: 6.59 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.001147/0.001147, allocations: 181.9 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.3 MB / 241.6 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1743/0.1743, allocations: 38.07 MB / 330.8 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003417/0.0003417, allocations: 9.562 kB / 400.7 MB, free: 34.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.106, allocations: 59.16 MB / 459.9 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine): time 0.01238/0.1184, allocations: 11.62 MB / 471.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008379/0.1268, allocations: 4.41 MB / 475.9 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001475/0.1283, allocations: 71.5 kB / 476 MB, free: 6.918 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.1294, allocations: 310 kB / 476.3 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002809/0.1322, allocations: 0.8676 MB / 477.1 MB, free: 5.742 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002064/0.1343, allocations: 0.5733 MB / 477.7 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004197/0.1385, allocations: 3.048 MB / 480.8 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002867/0.1414, allocations: 1.65 MB / 482.4 MB, free: 420 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001573/0.143, allocations: 0.6609 MB / 483.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001595/0.1446, allocations: 0.9499 MB / 484 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001683/0.1448, allocations: 60 kB / 484.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001308/0.1461, allocations: 0.5185 MB / 484.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006883/0.1468, allocations: 0.6156 MB / 485.2 MB, free: 13.6 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009698/0.1478, allocations: 0.7206 MB / 485.9 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002656/0.1504, allocations: 2.172 MB / 488.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1505, allocations: 0 / 488.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1505, allocations: 0 / 488.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.427e-05/0.1505, allocations: 4 kB / 488.1 MB, free: 10.68 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 331 * Number of variables: 331 Notification: Performance of Generate backend data structure: time 0.003379/0.1539, allocations: 1.525 MB / 489.6 MB, free: 9.102 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/0.154, allocations: 12.03 kB / 489.7 MB, free: 9.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001795/0.1558, allocations: 290.8 kB / 489.9 MB, free: 8.805 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002094/0.1579, allocations: 1.032 MB / 491 MB, free: 7.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.169e-05/0.158, allocations: 90.72 kB / 491.1 MB, free: 7.641 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003628/0.1583, allocations: 151.8 kB / 491.2 MB, free: 7.492 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002914/0.1613, allocations: 1.701 MB / 492.9 MB, free: 5.719 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.7e-05/0.1613, allocations: 8 kB / 492.9 MB, free: 5.711 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000128/0.1615, allocations: 48 kB / 493 MB, free: 5.664 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003508/0.1618, allocations: 102.4 kB / 493.1 MB, free: 5.562 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00254/0.1644, allocations: 1.446 MB / 494.5 MB, free: 4.109 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008684/0.1731, allocations: 6.122 MB / 0.4889 GB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.1743, allocations: 0.7058 MB / 0.4896 GB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007041/0.175, allocations: 472.3 kB / 0.49 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.412e-05/0.175, allocations: 8.656 kB / 0.49 GB, free: 12.44 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.1751, allocations: 43.22 kB / 0.4901 GB, free: 12.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=73): time 2.584e-06/0.1751, allocations: 4 kB / 0.4901 GB, free: 12.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=83): time 0.009958/0.1851, allocations: 4.437 MB / 0.4944 GB, free: 7.801 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.1852, allocations: 162.9 kB / 0.4946 GB, free: 7.602 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001101/0.1863, allocations: 0.8334 MB / 0.4954 GB, free: 6.762 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.398e-05/0.1864, allocations: 41.7 kB / 0.4954 GB, free: 6.715 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004655/0.1869, allocations: 0.639 MB / 0.4961 GB, free: 6.066 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002702/0.1871, allocations: 303.6 kB / 0.4963 GB, free: 5.766 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/0.1873, allocations: 105.7 kB / 0.4964 GB, free: 5.656 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.1875, allocations: 353.9 kB / 0.4968 GB, free: 5.305 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008414/0.1883, allocations: 494.2 kB / 0.4973 GB, free: 4.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001059/0.1894, allocations: 0.7776 MB / 0.498 GB, free: 3.922 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001999/0.1914, allocations: 1.316 MB / 0.4993 GB, free: 2.496 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.1914, allocations: 4 kB / 0.4993 GB, free: 2.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.004136/0.1956, allocations: 1.917 MB / 0.5012 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002441/0.1958, allocations: 340.1 kB / 0.5015 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.2465/0.4424, allocations: 1.511 MB / 0.503 GB, free: 37.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002358/0.4448, allocations: 0.5642 MB / 0.5035 GB, free: 37.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001902/0.4467, allocations: 488.4 kB / 0.504 GB, free: 37.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01512/0.4618, allocations: 13.24 MB / 0.5169 GB, free: 28.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/0.463, allocations: 72.3 kB / 0.517 GB, free: 28.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.048e-05/0.4631, allocations: 47.38 kB / 0.517 GB, free: 28.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.4631, allocations: 3.969 kB / 0.517 GB, free: 28.2 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004167/0.4673, allocations: 1.738 MB / 0.5187 GB, free: 28.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003287/0.4706, allocations: 1.46 MB / 0.5202 GB, free: 28.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002078/0.4727, allocations: 0.5682 MB / 0.5207 GB, free: 27.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008309/0.4736, allocations: 223.3 kB / 0.5209 GB, free: 27.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00968/0.4833, allocations: 10.18 MB / 0.5309 GB, free: 20.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009212/0.4842, allocations: 54.66 kB / 0.5309 GB, free: 20.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.538e-05/0.4843, allocations: 51.25 kB / 0.531 GB, free: 20.55 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (118): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 2} * Without analytic Jacobian (size): 0 systems 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 {(2,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0008567/0.4852, allocations: 0.4972 MB / 0.5315 GB, free: 20.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001749/0.4853, allocations: 99.5 kB / 0.5316 GB, free: 20.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00252/0.4879, allocations: 1.423 MB / 0.5329 GB, free: 19.67 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.4879, allocations: 12.97 kB / 0.533 GB, free: 19.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.4879, allocations: 4.625 kB / 0.533 GB, free: 19.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.4879, allocations: 4.688 kB / 0.533 GB, free: 19.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004465/0.4924, allocations: 2.875 MB / 0.5358 GB, free: 18.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.4924, allocations: 3.031 kB / 0.5358 GB, free: 18.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005546/0.493, allocations: 142.2 kB / 0.5359 GB, free: 18.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009947/0.494, allocations: 396.5 kB / 0.5363 GB, free: 18.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.616e-05/0.4941, allocations: 26.48 kB / 0.5363 GB, free: 18.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005765/0.4998, allocations: 8.682 MB / 0.5448 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.4999, allocations: 7.344 kB / 0.5448 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002869/0.5027, allocations: 1.96 MB / 0.5467 GB, free: 9.422 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003393/0.5031, allocations: 258.3 kB / 0.547 GB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001304/0.5032, allocations: 31.48 kB / 0.547 GB, free: 9.191 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005504/0.5038, allocations: 42.12 kB / 0.547 GB, free: 9.176 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.5039, allocations: 78.03 kB / 0.5471 GB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-05/0.504, allocations: 26.92 kB / 0.5471 GB, free: 9.125 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00071/0.5047, allocations: 0.5763 MB / 0.5477 GB, free: 8.785 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5047, allocations: 0 / 0.5477 GB, free: 8.785 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002286/0.507, allocations: 0.6389 MB / 0.5483 GB, free: 8.477 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 8 (turboGen.generator.i_s[1],turboGen.generator.i_s[2],turboGen.generator.i_s[3],turboGen.rotor.phi,turboGen.rotor.w,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 (66): * Single equations (assignments): 60 * 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.0003225/0.5073, allocations: 164.4 kB / 0.5485 GB, free: 8.328 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005073/0.5124, allocations: 3.559 MB / 0.552 GB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.5124, allocations: 1.094 kB / 0.552 GB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001512/0.514, allocations: 1.185 MB / 0.5531 GB, free: 3.484 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001567/0.5155, allocations: 223.3 kB / 0.5533 GB, free: 3.266 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005001/0.5205, allocations: 3.804 MB / 0.557 GB, free: 15.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001145/0.5217, allocations: 1.339 MB / 0.5583 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001098/0.5228, allocations: 344.4 kB / 0.5587 GB, free: 13.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001953/0.523, allocations: 79.42 kB / 0.5587 GB, free: 13.64 MB / 398.1 MB Notification: Performance of SimCode: time 8.61e-07/0.523, allocations: 0 / 0.5587 GB, free: 13.64 MB / 398.1 MB Notification: Performance of Templates: time 0.03894/0.562, allocations: 20.8 MB / 0.5791 GB, free: 9.012 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.pipe 2>&1)