Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine") translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001243/0.001248, allocations: 117.7 kB / 17.7 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 187 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.489/1.489, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1821/0.1821, allocations: 37.99 MB / 309.8 MB, free: 5.977 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00318/0.003181, allocations: 59.91 kB / 376.8 MB, free: 2.926 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3274, allocations: 55.25 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.009726/0.3372, allocations: 9.551 MB / 441.6 MB, free: 9.918 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005622/0.3429, allocations: 3.603 MB / 445.2 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007665/0.3437, allocations: 35.81 kB / 445.2 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00267/0.3464, allocations: 1.103 MB / 446.3 MB, free: 5.16 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.00218/0.3486, allocations: 0.8865 MB / 447.2 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001139/0.3498, allocations: 471 kB / 447.7 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002156/0.3519, allocations: 1.808 MB / 449.5 MB, free: 1.996 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001146/0.3531, allocations: 0.9699 MB / 450.4 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001132/0.3542, allocations: 0.7626 MB / 451.2 MB, free: 244 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001299/0.3555, allocations: 0.9033 MB / 452.1 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001609/0.3557, allocations: 104 kB / 452.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001218/0.357, allocations: 0.5381 MB / 452.8 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006382/0.3576, allocations: 0.639 MB / 453.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008742/0.3585, allocations: 0.7037 MB / 454.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002339/0.3608, allocations: 1.9 MB / 456 MB, free: 11.44 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.832e-06/0.3609, allocations: 0 / 456 MB, free: 11.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.3609, allocations: 0 / 456 MB, free: 11.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.172e-05/0.3609, allocations: 0 / 456 MB, free: 11.44 MB / 334.1 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.00318/0.3641, allocations: 1.634 MB / 457.6 MB, free: 9.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.454e-05/0.3642, allocations: 15.88 kB / 457.6 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001572/0.3657, allocations: 267.1 kB / 457.9 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002022/0.3678, allocations: 0.9452 MB / 458.9 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.087e-05/0.3679, allocations: 78.09 kB / 458.9 MB, free: 8.406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003535/0.3682, allocations: 131.9 kB / 459.1 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002431/0.3707, allocations: 1.489 MB / 460.5 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.929e-05/0.3707, allocations: 15.83 kB / 460.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001104/0.3708, allocations: 47.92 kB / 460.6 MB, free: 6.656 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002928/0.3711, allocations: 102.2 kB / 460.7 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001943/0.3731, allocations: 1.254 MB / 462 MB, free: 5.293 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007883/0.381, allocations: 5.637 MB / 467.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009574/0.382, allocations: 0.5936 MB / 468.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007389/0.3827, allocations: 391.3 kB / 468.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.498e-05/0.3828, allocations: 24.53 kB / 468.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.3829, allocations: 35.12 kB / 468.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 5.44e-06/0.3829, allocations: 4 kB / 468.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=74): time 0.007365/0.3903, allocations: 3.625 MB / 472.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.027e-05/0.3903, allocations: 93.64 kB / 472.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009257/0.3913, allocations: 0.7313 MB / 473.1 MB, free: 9.609 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.393e-05/0.3913, allocations: 45.64 kB / 473.1 MB, free: 9.559 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004395/0.3918, allocations: 0.5918 MB / 473.7 MB, free: 8.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002401/0.392, allocations: 264.2 kB / 474 MB, free: 8.695 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002877/0.3923, allocations: 182.5 kB / 474.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002586/0.3926, allocations: 402.7 kB / 474.5 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006029/0.3932, allocations: 389.8 kB / 474.9 MB, free: 7.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008667/0.3941, allocations: 0.6691 MB / 475.6 MB, free: 6.941 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.3955, allocations: 1.136 MB / 476.7 MB, free: 5.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.3956, allocations: 8 kB / 476.7 MB, free: 5.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003461/0.399, allocations: 1.701 MB / 478.4 MB, free: 3.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/0.3991, allocations: 12.28 kB / 478.5 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002562/0.4016, allocations: 1.317 MB / 479.8 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001912/0.4036, allocations: 0.573 MB / 480.3 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005894/0.4042, allocations: 167.7 kB / 480.5 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01315/0.4173, allocations: 10.37 MB / 490.9 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001123/0.4185, allocations: 43.97 kB / 490.9 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-05/0.4186, allocations: 47.98 kB / 491 MB, free: 6.816 MB / 366.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (2,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of prepare postOptimizeDAE: time 0.000786/0.4194, allocations: 381.4 kB / 491.3 MB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001819/0.4196, allocations: 90.88 kB / 491.4 MB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002406/0.422, allocations: 1.248 MB / 492.7 MB, free: 5.066 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.422, allocations: 8 kB / 492.7 MB, free: 5.059 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.422, allocations: 4 kB / 492.7 MB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.4221, allocations: 3.984 kB / 492.7 MB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004396/0.4265, allocations: 2.397 MB / 495.1 MB, free: 2.559 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.4265, allocations: 0 / 495.1 MB, free: 2.559 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004461/0.4269, allocations: 116 kB / 495.2 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00101/0.428, allocations: 375.8 kB / 495.6 MB, free: 2.062 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.14e-05/0.428, allocations: 27.98 kB / 495.6 MB, free: 2.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009403/0.4374, allocations: 9.293 MB / 0.4931 GB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.4375, allocations: 8.062 kB / 0.4931 GB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002839/0.4403, allocations: 1.674 MB / 0.4947 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000555/0.4409, allocations: 227.9 kB / 0.4949 GB, free: 6.066 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001275/0.4411, allocations: 27.92 kB / 0.4949 GB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004432/0.4415, allocations: 27.97 kB / 0.495 GB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.4417, allocations: 56.48 kB / 0.495 GB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.057e-05/0.4417, allocations: 23.98 kB / 0.495 GB, free: 5.934 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007191/0.4425, allocations: 0.5067 MB / 0.4955 GB, free: 5.434 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.562e-06/0.4425, allocations: 4.109 kB / 0.4955 GB, free: 5.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001437/0.4439, allocations: 371.9 kB / 0.4959 GB, free: 5.066 MB / 382.1 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 (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,10,100.0%), (1,3,100.0%), (1,3,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003209/0.4442, allocations: 142.8 kB / 0.496 GB, free: 4.922 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0024/0.4466, allocations: 1.591 MB / 0.4976 GB, free: 3.277 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/0.4467, allocations: 4 kB / 0.4976 GB, free: 3.273 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001495/0.4482, allocations: 1.083 MB / 0.4986 GB, free: 2.121 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.4492, allocations: 222.1 kB / 0.4989 GB, free: 1.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004426/0.4536, allocations: 2.697 MB / 0.5015 GB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009681/0.4546, allocations: 1.255 MB / 0.5027 GB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000536/0.4552, allocations: 215.6 kB / 0.5029 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001688/0.4554, allocations: 67.44 kB / 0.503 GB, free: 13.59 MB / 398.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4554, allocations: 0 / 0.503 GB, free: 13.59 MB / 398.1 MB Notification: Performance of Templates: time 0.2435/0.6988, allocations: 15.31 MB / 0.5179 GB, free: 84.69 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1)