Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.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.TurbineGeneratorLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine") translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002345/0.002349, allocations: 187.8 kB / 15.77 MB, free: 5.988 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.013/2.013, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.001124/0.001124, allocations: 94.84 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2681/0.2681, allocations: 38.06 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004597/0.0004596, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1093, allocations: 56.33 MB / 479 MB, free: 2.047 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01522/0.1246, allocations: 9.545 MB / 488.6 MB, free: 8.465 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.009515/0.1341, allocations: 3.848 MB / 492.4 MB, free: 4.605 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001315/0.1355, allocations: 63.56 kB / 492.5 MB, free: 4.543 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00129/0.1368, allocations: 326.1 kB / 492.8 MB, free: 4.223 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003151/0.14, allocations: 0.7243 MB / 493.5 MB, free: 3.496 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002004/0.142, allocations: 467 kB / 494 MB, free: 3.039 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002217/0.1443, allocations: 0.9327 MB / 494.9 MB, free: 2.105 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003095/0.1474, allocations: 1.315 MB / 496.2 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001375/0.1488, allocations: 0.5176 MB / 496.7 MB, free: 224 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00136/0.1502, allocations: 0.5685 MB / 497.3 MB, free: 15.65 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002254/0.1504, allocations: 56 kB / 497.4 MB, free: 15.59 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00129/0.1517, allocations: 395.4 kB / 497.8 MB, free: 15.21 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008025/0.1526, allocations: 0.5339 MB / 498.3 MB, free: 14.67 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004637/0.153, allocations: 265 kB / 498.6 MB, free: 14.41 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002645/0.1557, allocations: 1.418 MB / 500 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1558, allocations: 0 / 500 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.034e-06/0.1558, allocations: 0 / 500 MB, free: 12.98 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.082e-05/0.1558, allocations: 3.938 kB / 500 MB, free: 12.98 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: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.004209/0.16, allocations: 1.407 MB / 0.4896 GB, free: 11.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.1601, allocations: 8.031 kB / 0.4896 GB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002627/0.1627, allocations: 286.1 kB / 0.4899 GB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003196/0.166, allocations: 0.8743 MB / 0.4908 GB, free: 10.31 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-05/0.1661, allocations: 82.09 kB / 0.4908 GB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005212/0.1666, allocations: 135.8 kB / 0.491 GB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003681/0.1703, allocations: 1.47 MB / 0.4924 GB, free: 8.559 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.316e-05/0.1705, allocations: 15.89 kB / 0.4924 GB, free: 8.543 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001693/0.1706, allocations: 44 kB / 0.4925 GB, free: 8.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005342/0.1712, allocations: 98.16 kB / 0.4926 GB, free: 8.402 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00353/0.1747, allocations: 1.238 MB / 0.4938 GB, free: 7.156 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01266/0.1874, allocations: 5.676 MB / 0.4993 GB, free: 1.137 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.189, allocations: 0.5898 MB / 0.4999 GB, free: 0.5312 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.899e-05/0.1891, allocations: 20.55 kB / 0.4999 GB, free: 0.5117 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.261e-05/0.1892, allocations: 43.12 kB / 0.4999 GB, free: 472 kB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 4.088e-06/0.1892, allocations: 0 / 0.4999 GB, free: 472 kB / 346.7 MB Notification: Performance of matching and sorting (n=74): time 0.01201/0.2012, allocations: 3.53 MB / 0.5034 GB, free: 12.79 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.629e-05/0.2013, allocations: 85.77 kB / 0.5035 GB, free: 12.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001335/0.2027, allocations: 0.7312 MB / 0.5042 GB, free: 11.95 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.289e-05/0.2028, allocations: 37.73 kB / 0.5042 GB, free: 11.9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005492/0.2033, allocations: 0.6022 MB / 0.5048 GB, free: 11.29 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003379/0.2037, allocations: 268.1 kB / 0.5051 GB, free: 11.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.296e-05/0.2038, allocations: 20 kB / 0.5051 GB, free: 11.01 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.204, allocations: 350.8 kB / 0.5054 GB, free: 10.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001/0.205, allocations: 381.8 kB / 0.5058 GB, free: 10.29 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/0.2062, allocations: 0.6574 MB / 0.5064 GB, free: 9.504 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.2076, allocations: 0.5026 MB / 0.5069 GB, free: 9.004 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/0.2076, allocations: 0 / 0.5069 GB, free: 9.004 MB / 362.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.005502/0.2131, allocations: 1.644 MB / 0.5085 GB, free: 7.344 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.058e-05/0.2132, allocations: 11.95 kB / 0.5085 GB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004614/0.2178, allocations: 1.299 MB / 0.5098 GB, free: 6.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003331/0.2211, allocations: 0.5769 MB / 0.5104 GB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.2224, allocations: 183.7 kB / 0.5105 GB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.318/0.5404, allocations: 9.605 MB / 0.5199 GB, free: 48.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001162/0.5416, allocations: 50.88 kB / 0.52 GB, free: 48.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.5417, allocations: 41.94 kB / 0.52 GB, free: 48.01 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (94): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 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 {3 16} Notification: Performance of prepare postOptimizeDAE: time 0.0009586/0.5427, allocations: 382.8 kB / 0.5204 GB, free: 47.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002722/0.543, allocations: 89.12 kB / 0.5205 GB, free: 47.8 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003758/0.5468, allocations: 1.251 MB / 0.5217 GB, free: 47.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-05/0.5468, allocations: 7.062 kB / 0.5217 GB, free: 47.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.5468, allocations: 4.312 kB / 0.5217 GB, free: 47.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-05/0.5469, allocations: 9.938 kB / 0.5217 GB, free: 47.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006971/0.5539, allocations: 2.39 MB / 0.524 GB, free: 46.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/0.5539, allocations: 2.766 kB / 0.524 GB, free: 46.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009448/0.5549, allocations: 116.6 kB / 0.5242 GB, free: 46.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001949/0.5568, allocations: 369.9 kB / 0.5245 GB, free: 46.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001514/0.557, allocations: 27.72 kB / 0.5245 GB, free: 46.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01041/0.5675, allocations: 8.589 MB / 0.5329 GB, free: 38.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.114e-06/0.5675, allocations: 8.359 kB / 0.5329 GB, free: 38.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004545/0.5721, allocations: 1.762 MB / 0.5346 GB, free: 37.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007364/0.5729, allocations: 241.2 kB / 0.5349 GB, free: 37.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002076/0.5731, allocations: 21.53 kB / 0.5349 GB, free: 37.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008162/0.5739, allocations: 29.33 kB / 0.5349 GB, free: 37.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000257/0.5742, allocations: 65.14 kB / 0.535 GB, free: 37.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.071e-05/0.5743, allocations: 28.5 kB / 0.535 GB, free: 37.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001028/0.5753, allocations: 0.4979 MB / 0.5355 GB, free: 37.55 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5753, allocations: 0 / 0.5355 GB, free: 37.55 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002181/0.5775, allocations: 362.3 kB / 0.5358 GB, free: 37.52 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (57): * Single equations (assignments): 51 * 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.0004291/0.578, allocations: 138.9 kB / 0.536 GB, free: 37.42 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003572/0.5816, allocations: 1.576 MB / 0.5375 GB, free: 36.58 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.5816, allocations: 1.375 kB / 0.5375 GB, free: 36.58 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002358/0.584, allocations: 1.087 MB / 0.5386 GB, free: 35.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001428/0.5855, allocations: 188.9 kB / 0.5388 GB, free: 35.76 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006162/0.5916, allocations: 3.39 MB / 0.5421 GB, free: 33.81 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009582/0.5927, allocations: 1.284 MB / 0.5433 GB, free: 32.9 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003796/0.5931, allocations: 72.14 kB / 0.5434 GB, free: 32.89 MB / 362.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5931, allocations: 0 / 0.5434 GB, free: 32.89 MB / 362.7 MB Notification: Performance of Templates: time 0.04425/0.6373, allocations: 31.12 MB / 0.5738 GB, free: 3.41 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1)