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.00113/0.00113, allocations: 111.2 kB / 17.68 MB, free: 5.355 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.001036/0.001036, allocations: 192 kB / 18.62 MB, free: 4.434 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.374/1.374, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1803/0.1803, 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.001536/0.001536, allocations: 71.89 kB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2431, 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.008419/0.2515, allocations: 9.551 MB / 441.6 MB, free: 9.918 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005102/0.2567, allocations: 3.599 MB / 445.2 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007619/0.2575, allocations: 35.81 kB / 445.2 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002584/0.2601, allocations: 1.107 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.002893/0.263, allocations: 0.8904 MB / 447.2 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001381/0.2644, allocations: 475 kB / 447.7 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00209/0.2665, allocations: 1.808 MB / 449.5 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001062/0.2676, allocations: 0.966 MB / 450.4 MB, free: 1 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009828/0.2686, allocations: 0.7665 MB / 451.2 MB, free: 236 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001128/0.2697, allocations: 0.8916 MB / 452.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.2699, allocations: 112 kB / 452.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001125/0.271, allocations: 0.5303 MB / 452.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007322/0.2718, allocations: 0.6468 MB / 453.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009018/0.2727, allocations: 0.6959 MB / 454.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003003/0.2757, allocations: 1.908 MB / 456 MB, free: 11.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.2757, allocations: 0 / 456 MB, free: 11.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.2757, allocations: 0 / 456 MB, free: 11.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.75e-05/0.2758, allocations: 0 / 456 MB, free: 11.43 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.003993/0.2798, allocations: 1.631 MB / 457.6 MB, free: 9.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.402e-05/0.2799, allocations: 11.89 kB / 457.6 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001738/0.2816, allocations: 271 kB / 457.9 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002163/0.2838, allocations: 0.9491 MB / 458.8 MB, free: 8.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.751e-05/0.2839, allocations: 78.09 kB / 458.9 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004471/0.2844, allocations: 135.9 kB / 459.1 MB, free: 8.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002531/0.2869, allocations: 1.489 MB / 460.5 MB, free: 6.711 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.38e-05/0.287, allocations: 11.84 kB / 460.6 MB, free: 6.699 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.731e-05/0.2871, allocations: 40 kB / 460.6 MB, free: 6.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002896/0.2874, allocations: 98.16 kB / 460.7 MB, free: 6.562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001991/0.2894, allocations: 1.258 MB / 462 MB, free: 5.297 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007922/0.2973, allocations: 5.629 MB / 467.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008478/0.2982, allocations: 0.5975 MB / 468.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005256/0.2987, allocations: 403.2 kB / 468.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.642e-05/0.2988, allocations: 12.56 kB / 468.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.2988, allocations: 43.06 kB / 468.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.415e-06/0.2988, allocations: 0 / 468.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=74): time 0.007152/0.306, allocations: 3.634 MB / 472.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.174e-05/0.3061, allocations: 89.7 kB / 472.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009117/0.307, allocations: 0.7351 MB / 473.1 MB, free: 9.602 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.425e-05/0.3071, allocations: 41.7 kB / 473.1 MB, free: 9.555 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004104/0.3075, allocations: 0.5879 MB / 473.7 MB, free: 8.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002187/0.3077, allocations: 264.2 kB / 474 MB, free: 8.695 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000252/0.308, allocations: 182.5 kB / 474.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.3081, allocations: 410.8 kB / 474.5 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005667/0.3087, allocations: 385.8 kB / 474.9 MB, free: 7.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000734/0.3095, allocations: 0.6613 MB / 475.6 MB, free: 6.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00144/0.3109, allocations: 1.14 MB / 476.7 MB, free: 5.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.3109, allocations: 4 kB / 476.7 MB, free: 5.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003174/0.3141, allocations: 1.705 MB / 478.4 MB, free: 3.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.802e-05/0.3142, allocations: 16.28 kB / 478.5 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002465/0.3166, allocations: 1.309 MB / 479.8 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0018/0.3184, allocations: 0.573 MB / 480.3 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005926/0.319, allocations: 179.7 kB / 480.5 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01143/0.3305, allocations: 10.35 MB / 490.9 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009093/0.3314, allocations: 47.95 kB / 490.9 MB, free: 6.863 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.987e-05/0.3315, allocations: 40 kB / 490.9 MB, free: 6.824 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.0006052/0.3321, allocations: 385.4 kB / 491.3 MB, free: 6.438 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001797/0.3323, allocations: 90.88 kB / 491.4 MB, free: 6.348 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002141/0.3345, allocations: 1.244 MB / 492.7 MB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.466e-05/0.3345, allocations: 8 kB / 492.7 MB, free: 5.066 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.3345, allocations: 4 kB / 492.7 MB, free: 5.062 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.938e-06/0.3345, allocations: 7.984 kB / 492.7 MB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004263/0.3388, allocations: 2.405 MB / 495.1 MB, free: 2.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.3388, allocations: 0 / 495.1 MB, free: 2.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004745/0.3393, allocations: 112 kB / 495.2 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001091/0.3404, allocations: 375.8 kB / 495.6 MB, free: 2.062 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.717e-05/0.3405, allocations: 23.98 kB / 495.6 MB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008339/0.3488, allocations: 9.298 MB / 0.493 GB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.3489, allocations: 4.062 kB / 0.493 GB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003168/0.352, allocations: 1.682 MB / 0.4947 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006596/0.3527, allocations: 224 kB / 0.4949 GB, free: 6.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000263/0.353, allocations: 31.86 kB / 0.4949 GB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006033/0.3536, allocations: 27.98 kB / 0.495 GB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.3538, allocations: 56.47 kB / 0.495 GB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.576e-05/0.3539, allocations: 20 kB / 0.495 GB, free: 5.938 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009195/0.3548, allocations: 0.5107 MB / 0.4955 GB, free: 5.434 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.3548, allocations: 0 / 0.4955 GB, free: 5.434 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001833/0.3566, allocations: 364 kB / 0.4959 GB, free: 5.078 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.0004577/0.3571, allocations: 151.1 kB / 0.496 GB, free: 4.922 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002796/0.3599, allocations: 1.583 MB / 0.4976 GB, free: 3.285 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.3599, allocations: 0 / 0.4976 GB, free: 3.285 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001789/0.3617, allocations: 1.098 MB / 0.4986 GB, free: 2.117 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.3631, allocations: 221.8 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.005454/0.3686, allocations: 2.681 MB / 0.5015 GB, free: 15.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001297/0.3699, allocations: 1.258 MB / 0.5027 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006816/0.3706, allocations: 219.6 kB / 0.5029 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002602/0.3709, allocations: 67.42 kB / 0.503 GB, free: 13.6 MB / 398.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3709, allocations: 3.938 kB / 0.503 GB, free: 13.59 MB / 398.1 MB Notification: Performance of Templates: time 0.258/0.6289, allocations: 15.32 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 gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1)