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.001623/0.001623, allocations: 173.1 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.481/1.481, 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.0007329/0.0007329, allocations: 98.28 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.1653/0.1653, allocations: 38.06 MB / 356.6 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006631/0.0006633, allocations: 8 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1284, allocations: 56.34 MB / 479.1 MB, free: 2.043 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01106/0.1395, allocations: 10.01 MB / 489.1 MB, free: 7.992 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.006952/0.1465, allocations: 3.863 MB / 492.9 MB, free: 4.117 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001266/0.1478, allocations: 63.56 kB / 493 MB, free: 4.055 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001054/0.1489, allocations: 329.7 kB / 493.3 MB, free: 3.73 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002688/0.1516, allocations: 0.9099 MB / 494.2 MB, free: 2.816 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00154/0.1532, allocations: 471.1 kB / 494.7 MB, free: 2.355 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002838/0.156, allocations: 2.174 MB / 496.9 MB, free: 180 kB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002324/0.1584, allocations: 1.315 MB / 498.2 MB, free: 14.81 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001259/0.1596, allocations: 0.6067 MB / 498.8 MB, free: 14.2 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001315/0.161, allocations: 0.8801 MB / 499.7 MB, free: 13.32 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001312/0.1611, allocations: 52 kB / 499.7 MB, free: 13.27 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000951/0.1621, allocations: 427.2 kB / 0.4884 GB, free: 12.85 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005292/0.1626, allocations: 0.5845 MB / 0.489 GB, free: 12.26 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002974/0.1629, allocations: 269 kB / 0.4892 GB, free: 11.99 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001417/0.1643, allocations: 1.43 MB / 0.4906 GB, free: 10.56 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1644, allocations: 0 / 0.4906 GB, free: 10.56 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1644, allocations: 0 / 0.4906 GB, free: 10.56 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.188e-05/0.1644, allocations: 0 / 0.4906 GB, free: 10.56 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.002663/0.1671, allocations: 1.399 MB / 0.492 GB, free: 9.105 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.1671, allocations: 12.03 kB / 0.492 GB, free: 9.094 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001632/0.1688, allocations: 274 kB / 0.4923 GB, free: 8.824 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001886/0.1707, allocations: 0.8704 MB / 0.4931 GB, free: 7.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.681e-05/0.1707, allocations: 78.11 kB / 0.4932 GB, free: 7.832 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003147/0.1711, allocations: 143.8 kB / 0.4933 GB, free: 7.691 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002388/0.1735, allocations: 1.486 MB / 0.4948 GB, free: 6.137 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.703e-05/0.1735, allocations: 11.91 kB / 0.4948 GB, free: 6.125 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001082/0.1736, allocations: 47.98 kB / 0.4949 GB, free: 6.078 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002991/0.1739, allocations: 98.16 kB / 0.4949 GB, free: 5.98 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001989/0.1759, allocations: 1.254 MB / 0.4962 GB, free: 4.719 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007992/0.1839, allocations: 5.657 MB / 0.5017 GB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009104/0.1849, allocations: 0.5975 MB / 0.5023 GB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005381/0.1854, allocations: 403.2 kB / 0.5027 GB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.685e-05/0.1855, allocations: 8.562 kB / 0.5027 GB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.1855, allocations: 43.12 kB / 0.5027 GB, free: 13.64 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 3.346e-06/0.1855, allocations: 0 / 0.5027 GB, free: 13.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.007528/0.1931, allocations: 3.638 MB / 0.5063 GB, free: 9.844 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.833e-05/0.1932, allocations: 89.72 kB / 0.5063 GB, free: 9.738 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009198/0.1941, allocations: 0.7235 MB / 0.5071 GB, free: 9.008 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.476e-05/0.1942, allocations: 41.7 kB / 0.5071 GB, free: 8.961 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004258/0.1946, allocations: 0.5919 MB / 0.5077 GB, free: 8.359 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002292/0.1948, allocations: 264.2 kB / 0.5079 GB, free: 8.098 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.537e-05/0.1949, allocations: 20 kB / 0.5079 GB, free: 8.078 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.1951, allocations: 402.7 kB / 0.5083 GB, free: 7.676 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005858/0.1957, allocations: 393.8 kB / 0.5087 GB, free: 7.293 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008183/0.1965, allocations: 0.6535 MB / 0.5093 GB, free: 6.516 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007493/0.1973, allocations: 0.4987 MB / 0.5098 GB, free: 6.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.1973, allocations: 4 kB / 0.5098 GB, free: 6.016 MB / 362.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003289/0.2006, allocations: 1.702 MB / 0.5115 GB, free: 4.297 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.2006, allocations: 8 kB / 0.5115 GB, free: 4.289 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002639/0.2033, allocations: 1.307 MB / 0.5128 GB, free: 2.969 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001975/0.2053, allocations: 0.577 MB / 0.5133 GB, free: 2.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000642/0.2059, allocations: 167.7 kB / 0.5135 GB, free: 2.215 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2173/0.4232, allocations: 9.446 MB / 0.5227 GB, free: 46.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008885/0.4242, allocations: 48.53 kB / 0.5228 GB, free: 46.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.4243, allocations: 41.59 kB / 0.5228 GB, free: 46.64 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 (93): * Single equations (assignments): 89 * 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%) 4,(2,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {3 16} Notification: Performance of prepare postOptimizeDAE: time 0.0007084/0.425, allocations: 393.4 kB / 0.5232 GB, free: 46.42 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/0.4252, allocations: 90.39 kB / 0.5233 GB, free: 46.42 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002419/0.4276, allocations: 1.246 MB / 0.5245 GB, free: 45.93 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.4276, allocations: 7.719 kB / 0.5245 GB, free: 45.93 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.4276, allocations: 3.312 kB / 0.5245 GB, free: 45.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.275e-05/0.4276, allocations: 8.859 kB / 0.5245 GB, free: 45.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004428/0.4321, allocations: 2.392 MB / 0.5268 GB, free: 44.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.4321, allocations: 3.094 kB / 0.5268 GB, free: 44.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004753/0.4326, allocations: 104.5 kB / 0.5269 GB, free: 44.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001137/0.4337, allocations: 379.1 kB / 0.5273 GB, free: 44.79 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.629e-05/0.4338, allocations: 28.95 kB / 0.5273 GB, free: 44.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006603/0.4404, allocations: 8.508 MB / 0.5356 GB, free: 37.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.4404, allocations: 2.812 kB / 0.5356 GB, free: 37.43 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002691/0.4431, allocations: 1.671 MB / 0.5373 GB, free: 36.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003758/0.4435, allocations: 233.5 kB / 0.5375 GB, free: 36.51 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.4437, allocations: 25.36 kB / 0.5375 GB, free: 36.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00044/0.4441, allocations: 26.5 kB / 0.5376 GB, free: 36.49 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/0.4443, allocations: 63.72 kB / 0.5376 GB, free: 36.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.693e-05/0.4443, allocations: 24.23 kB / 0.5376 GB, free: 36.47 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006339/0.445, allocations: 0.4963 MB / 0.5381 GB, free: 36.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.563e-06/0.445, allocations: 0 / 0.5381 GB, free: 36.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001508/0.4465, allocations: 369.8 kB / 0.5385 GB, free: 36.23 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.0003376/0.4468, allocations: 154.5 kB / 0.5386 GB, free: 36.12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002225/0.4491, allocations: 1.569 MB / 0.5402 GB, free: 35.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.4491, allocations: 1.656 kB / 0.5402 GB, free: 35.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001342/0.4504, allocations: 1.091 MB / 0.5412 GB, free: 34.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009134/0.4514, allocations: 195.4 kB / 0.5414 GB, free: 34.48 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00381/0.4552, allocations: 3.394 MB / 0.5447 GB, free: 32.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000633/0.4558, allocations: 1.251 MB / 0.5459 GB, free: 31.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001767/0.456, allocations: 72.84 kB / 0.546 GB, free: 31.38 MB / 362.7 MB Notification: Performance of SimCode: time 6.92e-07/0.456, allocations: 0 / 0.546 GB, free: 31.38 MB / 362.7 MB Notification: Performance of Templates: time 0.02826/0.4843, allocations: 32.64 MB / 0.5779 GB, free: 15.84 MB / 378.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)