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.001352/0.001352, allocations: 173.9 kB / 15.77 MB, free: 6.32 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.466/1.466, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0007917/0.0007918, allocations: 94.34 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1711/0.1711, allocations: 38.06 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003819/0.0003819, allocations: 15.98 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1012, allocations: 56.33 MB / 479.1 MB, free: 2.035 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine): time 0.01155/0.1128, allocations: 10.92 MB / 490 MB, free: 7.074 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.008048/0.1209, allocations: 4.233 MB / 494.2 MB, free: 2.828 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001544/0.1225, allocations: 71.5 kB / 494.3 MB, free: 2.758 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001357/0.1239, allocations: 349.6 kB / 494.6 MB, free: 2.414 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003505/0.1274, allocations: 0.9604 MB / 495.6 MB, free: 1.449 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0021/0.1295, allocations: 0.581 MB / 496.2 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003468/0.133, allocations: 2.423 MB / 498.6 MB, free: 14.44 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0031/0.1361, allocations: 1.515 MB / 0.4884 GB, free: 12.88 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001586/0.1377, allocations: 0.6767 MB / 0.489 GB, free: 12.2 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001799/0.1396, allocations: 0.9423 MB / 0.49 GB, free: 11.25 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000316/0.1399, allocations: 60 kB / 0.49 GB, free: 11.19 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001279/0.1412, allocations: 431.2 kB / 0.4904 GB, free: 10.77 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008325/0.142, allocations: 0.6273 MB / 0.491 GB, free: 10.14 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006112/0.1426, allocations: 301 kB / 0.4913 GB, free: 9.84 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002298/0.145, allocations: 1.761 MB / 0.4931 GB, free: 8.074 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.145, allocations: 0 / 0.4931 GB, free: 8.074 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.145, allocations: 0 / 0.4931 GB, free: 8.074 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.323e-05/0.1451, allocations: 0 / 0.4931 GB, free: 8.074 MB / 346.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.004155/0.1492, allocations: 1.552 MB / 0.4946 GB, free: 6.465 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.1493, allocations: 8.031 kB / 0.4946 GB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001939/0.1512, allocations: 289.8 kB / 0.4949 GB, free: 6.172 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002532/0.1538, allocations: 1.012 MB / 0.4958 GB, free: 5.117 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.081e-05/0.1539, allocations: 94.34 kB / 0.4959 GB, free: 5.023 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004574/0.1544, allocations: 155.9 kB / 0.4961 GB, free: 4.871 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003186/0.1576, allocations: 1.693 MB / 0.4977 GB, free: 3.105 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.107e-05/0.1576, allocations: 4 kB / 0.4977 GB, free: 3.102 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001353/0.1578, allocations: 48 kB / 0.4978 GB, free: 3.055 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003097/0.1581, allocations: 102.4 kB / 0.4979 GB, free: 2.953 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002759/0.1609, allocations: 1.438 MB / 0.4993 GB, free: 1.508 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01076/0.1716, allocations: 6.107 MB / 0.5053 GB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.1729, allocations: 0.721 MB / 0.506 GB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007544/0.1737, allocations: 464.4 kB / 0.5064 GB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.502e-05/0.1738, allocations: 16.64 kB / 0.5064 GB, free: 9.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.967e-05/0.1739, allocations: 43.22 kB / 0.5065 GB, free: 9.789 MB / 362.7 MB Notification: Performance of pre-optimization done (n=73): time 3.296e-06/0.1739, allocations: 0 / 0.5065 GB, free: 9.789 MB / 362.7 MB Notification: Performance of matching and sorting (n=83): time 0.01027/0.1842, allocations: 4.427 MB / 0.5108 GB, free: 5.215 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.1843, allocations: 162.9 kB / 0.5109 GB, free: 5.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/0.1855, allocations: 0.8415 MB / 0.5118 GB, free: 4.152 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.272e-05/0.1855, allocations: 41.7 kB / 0.5118 GB, free: 4.105 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000494/0.186, allocations: 0.635 MB / 0.5124 GB, free: 3.461 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002881/0.1863, allocations: 299.7 kB / 0.5127 GB, free: 3.164 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.072e-05/0.1864, allocations: 24 kB / 0.5127 GB, free: 3.141 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1866, allocations: 357.8 kB / 0.5131 GB, free: 2.785 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007893/0.1874, allocations: 486.3 kB / 0.5135 GB, free: 2.312 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/0.1884, allocations: 0.7736 MB / 0.5143 GB, free: 1.418 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/0.1894, allocations: 0.6003 MB / 0.5149 GB, free: 0.8164 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.525e-06/0.1895, allocations: 7.938 kB / 0.5149 GB, free: 0.8086 MB / 362.7 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.2116/0.4011, allocations: 1.897 MB / 0.5167 GB, free: 50.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001829/0.4013, allocations: 333.7 kB / 0.517 GB, free: 50.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003405/0.4047, allocations: 1.511 MB / 0.5185 GB, free: 50.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002053/0.4067, allocations: 0.573 MB / 0.5191 GB, free: 50.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/0.4084, allocations: 477 kB / 0.5195 GB, free: 50.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.013/0.4214, allocations: 13.25 MB / 0.5325 GB, free: 39.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.4226, allocations: 67.64 kB / 0.5325 GB, free: 39.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002041/0.4228, allocations: 45.39 kB / 0.5326 GB, free: 39.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.4228, allocations: 7.531 kB / 0.5326 GB, free: 39.52 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003922/0.4268, allocations: 1.725 MB / 0.5343 GB, free: 38.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002942/0.4297, allocations: 1.447 MB / 0.5357 GB, free: 38.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001994/0.4317, allocations: 0.5669 MB / 0.5362 GB, free: 38.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008428/0.4326, allocations: 228 kB / 0.5365 GB, free: 38.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009806/0.4424, allocations: 10.18 MB / 0.5464 GB, free: 29.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009715/0.4434, allocations: 57.55 kB / 0.5464 GB, free: 29.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.4436, allocations: 43.5 kB / 0.5465 GB, free: 29.81 MB / 362.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.0009167/0.4445, allocations: 0.5008 MB / 0.547 GB, free: 29.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00029/0.4448, allocations: 105.6 kB / 0.5471 GB, free: 29.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002425/0.4472, allocations: 1.424 MB / 0.5485 GB, free: 28.6 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.4472, allocations: 15.62 kB / 0.5485 GB, free: 28.6 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.4473, allocations: 5.375 kB / 0.5485 GB, free: 28.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.4473, allocations: 5.547 kB / 0.5485 GB, free: 28.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004449/0.4517, allocations: 2.87 MB / 0.5513 GB, free: 26.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.4518, allocations: 3.844 kB / 0.5513 GB, free: 26.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00055/0.4523, allocations: 137.9 kB / 0.5514 GB, free: 26.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001006/0.4533, allocations: 389.3 kB / 0.5518 GB, free: 26.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.062e-05/0.4534, allocations: 35.97 kB / 0.5518 GB, free: 26.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005523/0.4589, allocations: 8.663 MB / 0.5603 GB, free: 17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.459, allocations: 4.031 kB / 0.5603 GB, free: 17 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002862/0.4618, allocations: 1.955 MB / 0.5622 GB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004774/0.4623, allocations: 267 kB / 0.5625 GB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002186/0.4626, allocations: 24 kB / 0.5625 GB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005998/0.4632, allocations: 47.95 kB / 0.5625 GB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.4633, allocations: 72.45 kB / 0.5626 GB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.593e-05/0.4633, allocations: 24 kB / 0.5626 GB, free: 14.53 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006791/0.464, allocations: 0.5741 MB / 0.5632 GB, free: 13.94 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.464, allocations: 0 / 0.5632 GB, free: 13.94 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002651/0.4667, allocations: 0.6511 MB / 0.5638 GB, free: 13.29 MB / 362.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.0003433/0.467, allocations: 149.9 kB / 0.564 GB, free: 13.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005118/0.4722, allocations: 3.543 MB / 0.5674 GB, free: 9.484 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.4722, allocations: 0.5 kB / 0.5674 GB, free: 9.484 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001497/0.4737, allocations: 1.182 MB / 0.5686 GB, free: 8.242 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001202/0.4749, allocations: 219.2 kB / 0.5688 GB, free: 8.027 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005438/0.4804, allocations: 3.825 MB / 0.5725 GB, free: 4.133 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000969/0.4814, allocations: 1.343 MB / 0.5738 GB, free: 2.758 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002855/0.4817, allocations: 79.42 kB / 0.5739 GB, free: 2.68 MB / 362.7 MB Notification: Performance of SimCode: time 9.81e-07/0.4817, allocations: 0 / 0.5739 GB, free: 2.68 MB / 362.7 MB Notification: Performance of Templates: time 0.05586/0.5375, allocations: 46.7 MB / 0.6195 GB, free: 3.902 MB / 410.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)