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.001713/0.001713, allocations: 188.1 kB / 15.77 MB, free: 5.992 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.031/2.031, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001127/0.001126, allocations: 98.83 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2694/0.2694, allocations: 38.06 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004597/0.0004598, allocations: 15.98 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1143, allocations: 56.33 MB / 479 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurboGeneratorLine): time 0.01701/0.1313, allocations: 10.4 MB / 489.4 MB, free: 7.602 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01091/0.1423, allocations: 4.23 MB / 493.7 MB, free: 3.359 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001624/0.144, allocations: 67.56 kB / 493.7 MB, free: 3.293 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001574/0.1456, allocations: 346 kB / 494.1 MB, free: 2.953 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003908/0.1495, allocations: 0.7671 MB / 494.8 MB, free: 2.184 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002913/0.1525, allocations: 0.5886 MB / 495.4 MB, free: 1.594 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003208/0.1558, allocations: 1.049 MB / 496.5 MB, free: 0.543 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004206/0.16, allocations: 1.512 MB / 498 MB, free: 14.98 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001488/0.1616, allocations: 0.58 MB / 498.6 MB, free: 14.4 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001404/0.163, allocations: 0.6151 MB / 499.2 MB, free: 13.78 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000223/0.1632, allocations: 64 kB / 499.2 MB, free: 13.72 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001284/0.1645, allocations: 419.2 kB / 499.6 MB, free: 13.31 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008142/0.1654, allocations: 0.5612 MB / 0.4885 GB, free: 12.75 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004987/0.1659, allocations: 301 kB / 0.4888 GB, free: 12.45 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003009/0.1689, allocations: 1.753 MB / 0.4905 GB, free: 10.69 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.1689, allocations: 3.938 kB / 0.4905 GB, free: 10.68 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1689, allocations: 3.938 kB / 0.4905 GB, free: 10.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.651e-05/0.169, allocations: 0 / 0.4905 GB, free: 10.68 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.004819/0.1738, allocations: 1.552 MB / 0.492 GB, free: 9.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.1739, allocations: 12.03 kB / 0.492 GB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002766/0.1767, allocations: 301.8 kB / 0.4923 GB, free: 8.762 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003526/0.1802, allocations: 1.023 MB / 0.4933 GB, free: 7.695 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.1804, allocations: 90.34 kB / 0.4934 GB, free: 7.605 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005805/0.181, allocations: 155.8 kB / 0.4935 GB, free: 7.453 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004476/0.1855, allocations: 1.67 MB / 0.4952 GB, free: 5.711 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.144e-05/0.1856, allocations: 4 kB / 0.4952 GB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001939/0.1858, allocations: 48 kB / 0.4952 GB, free: 5.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005641/0.1863, allocations: 106.4 kB / 0.4953 GB, free: 5.555 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004266/0.1906, allocations: 1.426 MB / 0.4967 GB, free: 4.121 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0152/0.2059, allocations: 6.103 MB / 0.5027 GB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002096/0.208, allocations: 0.725 MB / 0.5034 GB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.242e-05/0.2081, allocations: 8.719 kB / 0.5034 GB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.151e-05/0.2082, allocations: 47.2 kB / 0.5034 GB, free: 12.87 MB / 362.7 MB Notification: Performance of pre-optimization done (n=73): time 3.777e-06/0.2082, allocations: 0 / 0.5034 GB, free: 12.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=82): time 0.01627/0.2245, allocations: 4.39 MB / 0.5077 GB, free: 8.332 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.2246, allocations: 162.9 kB / 0.5079 GB, free: 8.137 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00166/0.2263, allocations: 0.8336 MB / 0.5087 GB, free: 7.277 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001647/0.2265, allocations: 45.69 kB / 0.5087 GB, free: 7.227 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006439/0.2272, allocations: 0.6452 MB / 0.5094 GB, free: 6.574 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004255/0.2276, allocations: 291.8 kB / 0.5096 GB, free: 6.285 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.516e-05/0.2277, allocations: 24 kB / 0.5097 GB, free: 6.262 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.2279, allocations: 362.8 kB / 0.51 GB, free: 5.898 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001416/0.2293, allocations: 478.3 kB / 0.5105 GB, free: 5.434 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001703/0.2311, allocations: 0.7697 MB / 0.5112 GB, free: 4.543 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0017/0.2328, allocations: 0.5925 MB / 0.5118 GB, free: 3.949 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/0.2328, allocations: 4 kB / 0.5118 GB, free: 3.945 MB / 362.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.006599/0.2394, allocations: 1.836 MB / 0.5136 GB, free: 2.086 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.3095/0.5489, allocations: 3.223 MB / 0.5167 GB, free: 49.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006037/0.555, allocations: 1.494 MB / 0.5182 GB, free: 49.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00368/0.5588, allocations: 0.5613 MB / 0.5188 GB, free: 49.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003284/0.5621, allocations: 485.3 kB / 0.5192 GB, free: 49.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02159/0.5837, allocations: 13.46 MB / 0.5324 GB, free: 38.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/0.5852, allocations: 69.36 kB / 0.5324 GB, free: 38.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001438/0.5854, allocations: 45.62 kB / 0.5325 GB, free: 38.56 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.5854, allocations: 3.531 kB / 0.5325 GB, free: 38.56 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006222/0.5917, allocations: 1.716 MB / 0.5341 GB, free: 37.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005146/0.5969, allocations: 1.431 MB / 0.5355 GB, free: 37.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003214/0.6001, allocations: 0.5326 MB / 0.5361 GB, free: 37.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001599/0.6018, allocations: 223 kB / 0.5363 GB, free: 37.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01575/0.6176, allocations: 10.32 MB / 0.5464 GB, free: 29.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.6186, allocations: 55.73 kB / 0.5464 GB, free: 29.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001506/0.6188, allocations: 43.47 kB / 0.5464 GB, free: 29.14 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%) 3,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.001046/0.6198, allocations: 0.4903 MB / 0.5469 GB, free: 28.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003108/0.6202, allocations: 112.5 kB / 0.547 GB, free: 28.76 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003964/0.6241, allocations: 1.412 MB / 0.5484 GB, free: 27.94 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.715e-05/0.6242, allocations: 11.77 kB / 0.5484 GB, free: 27.93 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.6242, allocations: 11.56 kB / 0.5484 GB, free: 27.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.621e-05/0.6242, allocations: 3.984 kB / 0.5484 GB, free: 27.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007541/0.6318, allocations: 2.845 MB / 0.5512 GB, free: 26.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/0.6318, allocations: 3.844 kB / 0.5512 GB, free: 26.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001114/0.633, allocations: 147.4 kB / 0.5514 GB, free: 26.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00183/0.6348, allocations: 389.3 kB / 0.5517 GB, free: 25.87 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001491/0.635, allocations: 30.36 kB / 0.5518 GB, free: 25.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0097/0.6447, allocations: 8.758 MB / 0.5603 GB, free: 16.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/0.6447, allocations: 7.953 kB / 0.5603 GB, free: 16.56 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00486/0.6496, allocations: 2.059 MB / 0.5623 GB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006848/0.6503, allocations: 259.8 kB / 0.5626 GB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000235/0.6506, allocations: 35.95 kB / 0.5626 GB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.6516, allocations: 43.95 kB / 0.5627 GB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002225/0.6519, allocations: 72.5 kB / 0.5627 GB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-05/0.6519, allocations: 20 kB / 0.5627 GB, free: 13.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009694/0.6529, allocations: 0.5778 MB / 0.5633 GB, free: 13.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.523e-06/0.6529, allocations: 0 / 0.5633 GB, free: 13.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002954/0.6559, allocations: 0.6391 MB / 0.5639 GB, free: 12.71 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (65): * Single equations (assignments): 59 * 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.0004074/0.6563, allocations: 160.9 kB / 0.5641 GB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00894/0.6653, allocations: 3.518 MB / 0.5675 GB, free: 8.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.609e-06/0.6654, allocations: 4 kB / 0.5675 GB, free: 8.906 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002983/0.6684, allocations: 1.172 MB / 0.5687 GB, free: 7.676 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001928/0.6703, allocations: 215.5 kB / 0.5689 GB, free: 7.465 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007682/0.6781, allocations: 3.816 MB / 0.5726 GB, free: 3.586 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001151/0.6793, allocations: 1.362 MB / 0.5739 GB, free: 2.195 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004531/0.6798, allocations: 79.42 kB / 0.574 GB, free: 2.121 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/0.6798, allocations: 3.938 kB / 0.574 GB, free: 2.117 MB / 362.7 MB Notification: Performance of Templates: time 0.08428/0.7641, allocations: 44.02 MB / 0.617 GB, free: 6.023 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)