Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine") translateModel(PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009345/0.0009345, allocations: 174.2 kB / 16.07 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.198/1.198, allocations: 205.4 MB / 222.2 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007174/0.0007174, allocations: 95.75 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1644/0.1644, allocations: 38.06 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003423/0.0003424, allocations: 12 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2333, allocations: 56.32 MB / 479.6 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine): time 0.009177/0.2426, allocations: 11.01 MB / 490.6 MB, free: 1.645 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006746/0.2494, allocations: 4.247 MB / 494.9 MB, free: 14.61 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00131/0.2507, allocations: 71.31 kB / 494.9 MB, free: 14.58 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001201/0.2519, allocations: 343.9 kB / 495.3 MB, free: 14.41 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003028/0.255, allocations: 0.9663 MB / 496.2 MB, free: 13.91 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002082/0.2571, allocations: 0.606 MB / 496.9 MB, free: 13.62 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003665/0.2608, allocations: 2.422 MB / 499.3 MB, free: 12.73 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00292/0.2637, allocations: 1.608 MB / 0.4891 GB, free: 11.88 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001585/0.2653, allocations: 0.6739 MB / 0.4898 GB, free: 11.61 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001526/0.2668, allocations: 0.9338 MB / 0.4907 GB, free: 11.21 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001769/0.267, allocations: 69.28 kB / 0.4908 GB, free: 11.2 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001183/0.2682, allocations: 0.4906 MB / 0.4913 GB, free: 10.96 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006388/0.2689, allocations: 0.6307 MB / 0.4919 GB, free: 10.59 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008183/0.2697, allocations: 0.6958 MB / 0.4926 GB, free: 10.14 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001793/0.2715, allocations: 1.762 MB / 0.4943 GB, free: 8.949 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2715, allocations: 0.9688 kB / 0.4943 GB, free: 8.949 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2715, allocations: 0 / 0.4943 GB, free: 8.949 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.149e-05/0.2716, allocations: 0 / 0.4943 GB, free: 8.949 MB / 330.7 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.002932/0.2745, allocations: 1.525 MB / 0.4958 GB, free: 7.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.2746, allocations: 13.25 kB / 0.4958 GB, free: 7.816 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001564/0.2761, allocations: 298.5 kB / 0.4961 GB, free: 7.672 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002046/0.2782, allocations: 1.048 MB / 0.4971 GB, free: 6.898 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.33e-05/0.2783, allocations: 91.62 kB / 0.4972 GB, free: 6.855 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003401/0.2786, allocations: 151.5 kB / 0.4973 GB, free: 6.797 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002679/0.2813, allocations: 1.688 MB / 0.499 GB, free: 5.762 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.31e-05/0.2814, allocations: 4.125 kB / 0.499 GB, free: 5.762 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001256/0.2815, allocations: 50.98 kB / 0.499 GB, free: 5.723 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002841/0.2818, allocations: 111.4 kB / 0.4991 GB, free: 5.688 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002496/0.2843, allocations: 1.43 MB / 0.5005 GB, free: 4.992 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009529/0.2939, allocations: 6.114 MB / 0.5065 GB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.295, allocations: 0.7019 MB / 0.5072 GB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006867/0.2957, allocations: 472.4 kB / 0.5076 GB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.859e-05/0.2958, allocations: 20.58 kB / 0.5076 GB, free: 13.58 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.2959, allocations: 43.22 kB / 0.5077 GB, free: 13.53 MB / 346.7 MB Notification: Performance of pre-optimization done (n=73): time 2.635e-06/0.2959, allocations: 0 / 0.5077 GB, free: 13.53 MB / 346.7 MB Notification: Performance of matching and sorting (n=83): time 0.009242/0.3051, allocations: 4.432 MB / 0.512 GB, free: 8.961 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.791e-05/0.3052, allocations: 170.9 kB / 0.5122 GB, free: 8.754 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001031/0.3063, allocations: 0.8336 MB / 0.513 GB, free: 7.895 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.899e-05/0.3064, allocations: 41.7 kB / 0.513 GB, free: 7.848 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000411/0.3068, allocations: 0.6311 MB / 0.5137 GB, free: 7.207 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002416/0.307, allocations: 303.7 kB / 0.5139 GB, free: 6.906 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.083e-05/0.3071, allocations: 20 kB / 0.514 GB, free: 6.887 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.3072, allocations: 353.9 kB / 0.5143 GB, free: 6.535 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007663/0.308, allocations: 490.3 kB / 0.5148 GB, free: 6.055 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009474/0.309, allocations: 0.7697 MB / 0.5155 GB, free: 5.164 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00174/0.3107, allocations: 1.304 MB / 0.5168 GB, free: 3.746 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.156e-06/0.3107, allocations: 4 kB / 0.5168 GB, free: 3.742 MB / 346.7 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.003676/0.3144, allocations: 1.901 MB / 0.5187 GB, free: 1.816 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002247/0.3147, allocations: 344.2 kB / 0.519 GB, free: 1.363 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003019/0.3177, allocations: 1.514 MB / 0.5205 GB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001867/0.3196, allocations: 0.566 MB / 0.521 GB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001501/0.3211, allocations: 487.4 kB / 0.5215 GB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01323/0.3344, allocations: 13.25 MB / 0.5344 GB, free: 0.5977 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.3355, allocations: 79.88 kB / 0.5345 GB, free: 0.5195 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001434/0.3356, allocations: 44 kB / 0.5345 GB, free: 488 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.418e-06/0.3356, allocations: 4 kB / 0.5345 GB, free: 484 kB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003508/0.3392, allocations: 1.733 MB / 0.5362 GB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002795/0.342, allocations: 1.44 MB / 0.5376 GB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001855/0.3439, allocations: 0.5731 MB / 0.5382 GB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007837/0.3447, allocations: 215.7 kB / 0.5384 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01047/0.3551, allocations: 10.16 MB / 0.5483 GB, free: 1.645 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008592/0.356, allocations: 67.83 kB / 0.5484 GB, free: 1.578 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001236/0.3562, allocations: 40 kB / 0.5484 GB, free: 1.539 MB / 378.7 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 (linear and non-linear blocks): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0008661/0.357, allocations: 0.5084 MB / 0.5489 GB, free: 1.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002479/0.3573, allocations: 106.7 kB / 0.549 GB, free: 0.9141 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002639/0.3599, allocations: 1.421 MB / 0.5504 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.36, allocations: 8 kB / 0.5504 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.36, allocations: 8.047 kB / 0.5504 GB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.36, allocations: 7.984 kB / 0.5504 GB, free: 15.44 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005037/0.365, allocations: 2.878 MB / 0.5532 GB, free: 12.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/0.3651, allocations: 4 kB / 0.5532 GB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005349/0.3656, allocations: 131.8 kB / 0.5534 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001087/0.3667, allocations: 387.9 kB / 0.5537 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.871e-05/0.3668, allocations: 39.91 kB / 0.5538 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00738/0.3742, allocations: 8.673 MB / 0.5623 GB, free: 2.547 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.3743, allocations: 0 / 0.5623 GB, free: 2.547 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003283/0.3775, allocations: 1.954 MB / 0.5642 GB, free: 0.5273 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005633/0.3781, allocations: 267.7 kB / 0.5644 GB, free: 252 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002248/0.3784, allocations: 31.88 kB / 0.5644 GB, free: 220 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005912/0.379, allocations: 48.14 kB / 0.5645 GB, free: 172 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/0.3791, allocations: 68.5 kB / 0.5646 GB, free: 104 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.516e-05/0.3792, allocations: 31.92 kB / 0.5646 GB, free: 72 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008268/0.38, allocations: 0.5701 MB / 0.5651 GB, free: 15.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.38, allocations: 0 / 0.5651 GB, free: 15.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002275/0.3823, allocations: 0.6523 MB / 0.5658 GB, free: 14.83 MB / 410.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 10,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003397/0.3827, allocations: 143 kB / 0.5659 GB, free: 14.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005666/0.3883, allocations: 3.541 MB / 0.5694 GB, free: 11.01 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.288e-06/0.3884, allocations: 0 / 0.5694 GB, free: 11.01 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001792/0.3902, allocations: 1.174 MB / 0.5705 GB, free: 9.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001597/0.3918, allocations: 223.7 kB / 0.5707 GB, free: 9.547 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005356/0.3972, allocations: 3.847 MB / 0.5745 GB, free: 5.641 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001085/0.3983, allocations: 1.335 MB / 0.5758 GB, free: 4.273 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002546/0.3985, allocations: 83.42 kB / 0.5759 GB, free: 4.191 MB / 410.7 MB Notification: Performance of SimCode: time 4.71e-07/0.3986, allocations: 0 / 0.5759 GB, free: 4.191 MB / 410.7 MB Notification: Performance of Templates: time 0.04908/0.4476, allocations: 46.67 MB / 0.6214 GB, free: 5.449 MB / 458.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine.pipe 2>&1)