Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.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.WindGeneratorLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine") translateModel(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 115.1 kB / 17.69 MB, free: 5.309 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.001265/0.001265, allocations: 191 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.508/1.508, allocations: 205.1 MB / 224.5 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1782/0.1782, allocations: 37.98 MB / 309.8 MB, free: 5.98 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.001597/0.001597, allocations: 71.91 kB / 376.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2818, allocations: 55.24 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.007781/0.2896, allocations: 7.619 MB / 439.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007106/0.2968, allocations: 5.328 MB / 445 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007483/0.2976, allocations: 31.81 kB / 445 MB, free: 6.465 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeComponents: time 0.008485/0.306, allocations: 5.172 MB / 450.2 MB, free: 1.285 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001483/0.3075, allocations: 0.6339 MB / 450.8 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000898/0.3085, allocations: 429.8 kB / 451.2 MB, free: 236 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002698/0.3112, allocations: 2.202 MB / 453.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001301/0.3125, allocations: 1.12 MB / 454.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009338/0.3134, allocations: 0.6345 MB / 455.2 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009683/0.3144, allocations: 0.7397 MB / 455.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001738/0.3146, allocations: 116 kB / 456 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008018/0.3154, allocations: 391.5 kB / 456.4 MB, free: 11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004532/0.3159, allocations: 0.5026 MB / 456.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005691/0.3165, allocations: 0.5989 MB / 457.5 MB, free: 9.898 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001662/0.3181, allocations: 1.714 MB / 459.2 MB, free: 8.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.3181, allocations: 7.938 kB / 459.2 MB, free: 8.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3182, allocations: 0 / 459.2 MB, free: 8.172 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.52e-05/0.3182, allocations: 0 / 459.2 MB, free: 8.172 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.002639/0.3208, allocations: 1.421 MB / 460.7 MB, free: 6.695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.3209, allocations: 15.89 kB / 460.7 MB, free: 6.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006724/0.3216, allocations: 155.5 kB / 460.8 MB, free: 6.527 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001751/0.3233, allocations: 0.9717 MB / 461.8 MB, free: 5.516 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.7e-05/0.3234, allocations: 58 kB / 461.9 MB, free: 5.457 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001864/0.3236, allocations: 91.89 kB / 462 MB, free: 5.367 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.3251, allocations: 1.063 MB / 463 MB, free: 4.266 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.374e-05/0.3252, allocations: 7.938 kB / 463 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.778e-05/0.3253, allocations: 31.98 kB / 463.1 MB, free: 4.227 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002096/0.3255, allocations: 73.95 kB / 463.1 MB, free: 4.152 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001302/0.3268, allocations: 0.8353 MB / 464 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005413/0.3322, allocations: 3.977 MB / 467.9 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009898/0.3332, allocations: 0.6253 MB / 468.6 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004251/0.3337, allocations: 311.2 kB / 468.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.481e-05/0.3337, allocations: 8.562 kB / 468.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.4e-05/0.3338, allocations: 43.12 kB / 468.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 2.274e-06/0.3338, allocations: 336 / 468.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004708/0.3385, allocations: 2.579 MB / 471.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.667e-05/0.3386, allocations: 111.4 kB / 471.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008688/0.3395, allocations: 0.7034 MB / 472.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.716e-05/0.3395, allocations: 37.7 kB / 472.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003534/0.3399, allocations: 479.2 kB / 472.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001988/0.3401, allocations: 240.6 kB / 473.1 MB, free: 9.848 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002262/0.3403, allocations: 150.6 kB / 473.2 MB, free: 9.695 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.3405, allocations: 390.8 kB / 473.6 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004542/0.341, allocations: 309.8 kB / 473.9 MB, free: 9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006039/0.3416, allocations: 0.5149 MB / 474.4 MB, free: 8.398 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003585/0.3452, allocations: 1.668 MB / 476.1 MB, free: 6.625 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.3452, allocations: 4 kB / 476.1 MB, free: 6.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002249/0.3475, allocations: 1.27 MB / 477.3 MB, free: 5.336 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.3475, allocations: 12.28 kB / 477.4 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.3475, allocations: 8 kB / 477.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001077/0.3486, allocations: 397.3 kB / 477.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005103/0.3491, allocations: 155.7 kB / 477.9 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007639/0.3568, allocations: 6.246 MB / 484.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006668/0.3575, allocations: 28.05 kB / 484.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.3576, allocations: 40 kB / 484.2 MB, free: 14.16 MB / 366.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.windGen.WT.turbine.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (75): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0007741/0.3584, allocations: 353.5 kB / 484.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003034/0.3587, allocations: 83.06 kB / 484.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00188/0.3606, allocations: 0.8955 MB / 485.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.3606, allocations: 8 kB / 485.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.3606, allocations: 0 / 485.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.3606, allocations: 3.984 kB / 485.5 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003846/0.3645, allocations: 2.006 MB / 487.6 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3645, allocations: 4 kB / 487.6 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006138/0.3651, allocations: 116 kB / 487.7 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005325/0.3657, allocations: 194.3 kB / 487.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.02e-05/0.3657, allocations: 27.98 kB / 487.9 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005029/0.3708, allocations: 5.48 MB / 493.4 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3708, allocations: 8 kB / 493.4 MB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001915/0.3727, allocations: 1.259 MB / 494.6 MB, free: 3.121 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004162/0.3732, allocations: 212 kB / 494.8 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001459/0.3733, allocations: 19.98 kB / 494.9 MB, free: 2.875 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003891/0.3737, allocations: 20.19 kB / 494.9 MB, free: 2.855 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.3738, allocations: 52.42 kB / 494.9 MB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.71e-05/0.3739, allocations: 24 kB / 495 MB, free: 2.781 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006998/0.3746, allocations: 0.4912 MB / 495.4 MB, free: 2.297 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3746, allocations: 0 / 495.4 MB, free: 2.297 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001144/0.3758, allocations: 244 kB / 495.7 MB, free: 2.059 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 11 (windGen.generator.i[3],windGen.generator.psi_rd[1],windGen.generator.psi_rq[1],windGen.WT.genRotor.phi,windGen.WT.genRotor.w,windGen.WT.turbine.phi,windGen.WT.turbine.w,windGen.WT.gear.phi,windGen.WT.gear.w,line.i[1],line.i[2]) * 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 (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,5,100.0%), (1,5,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.001038/0.3768, allocations: 424 kB / 496.1 MB, free: 1.695 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002141/0.379, allocations: 1.133 MB / 497.2 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.379, allocations: 0 / 497.2 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009945/0.38, allocations: 0.7192 MB / 497.9 MB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009884/0.381, allocations: 190.7 kB / 498.1 MB, free: 15.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004077/0.3851, allocations: 2.493 MB / 0.4889 GB, free: 13.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008876/0.386, allocations: 1.146 MB / 0.49 GB, free: 11.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005026/0.3865, allocations: 158.6 kB / 0.4902 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002114/0.3867, allocations: 63.44 kB / 0.4902 GB, free: 11.65 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3867, allocations: 0 / 0.4902 GB, free: 11.65 MB / 382.1 MB Notification: Performance of Templates: time 0.0244/0.4111, allocations: 12.45 MB / 0.5024 GB, free: 15.18 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe 2>&1)