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.001433/0.001433, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001328/0.001328, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.654/1.654, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1859/0.1859, allocations: 37.99 MB / 309.8 MB, free: 5.973 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.001507/0.001507, allocations: 75 kB / 376.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.279, allocations: 55.24 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.007625/0.2867, allocations: 7.615 MB / 439.6 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007933/0.2947, allocations: 5.328 MB / 445 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008949/0.2956, allocations: 31.88 kB / 445 MB, free: 6.473 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.009526/0.3052, allocations: 5.176 MB / 450.2 MB, free: 1.289 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.001976/0.3072, allocations: 0.6415 MB / 450.8 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.3084, allocations: 433.5 kB / 451.2 MB, free: 228 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003176/0.3116, allocations: 2.194 MB / 453.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001449/0.313, allocations: 1.116 MB / 454.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001153/0.3142, allocations: 0.6422 MB / 455.2 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0012/0.3154, allocations: 0.7396 MB / 455.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001919/0.3156, allocations: 116 kB / 456 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009737/0.3166, allocations: 391.5 kB / 456.4 MB, free: 11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005731/0.3172, allocations: 0.4949 MB / 456.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006579/0.3179, allocations: 0.5988 MB / 457.5 MB, free: 9.902 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001976/0.3199, allocations: 1.714 MB / 459.2 MB, free: 8.184 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.287e-06/0.3199, allocations: 4 kB / 459.2 MB, free: 8.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.3199, allocations: 0 / 459.2 MB, free: 8.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.92e-05/0.3199, allocations: 0 / 459.2 MB, free: 8.18 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.003142/0.3231, allocations: 1.421 MB / 460.7 MB, free: 6.703 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.3231, allocations: 15.89 kB / 460.7 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007498/0.3239, allocations: 155.5 kB / 460.8 MB, free: 6.535 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002329/0.3262, allocations: 0.9679 MB / 461.8 MB, free: 5.527 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.481e-05/0.3263, allocations: 58 kB / 461.8 MB, free: 5.469 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002384/0.3266, allocations: 99.81 kB / 461.9 MB, free: 5.371 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001847/0.3284, allocations: 1.067 MB / 463 MB, free: 4.266 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.352e-05/0.3285, allocations: 0 / 463 MB, free: 4.266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.247e-05/0.3286, allocations: 28 kB / 463 MB, free: 4.238 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002193/0.3288, allocations: 77.89 kB / 463.1 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001367/0.3302, allocations: 0.8353 MB / 464 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005735/0.3359, allocations: 3.977 MB / 467.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000995/0.3369, allocations: 0.6174 MB / 468.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004411/0.3374, allocations: 315.3 kB / 468.9 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.414e-05/0.3374, allocations: 16.39 kB / 468.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.3375, allocations: 39.12 kB / 468.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 1.924e-06/0.3375, allocations: 4 kB / 468.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004415/0.3419, allocations: 2.579 MB / 471.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.13e-05/0.342, allocations: 107.4 kB / 471.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009429/0.343, allocations: 0.7034 MB / 472.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.167e-05/0.343, allocations: 37.7 kB / 472.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003961/0.3434, allocations: 479.2 kB / 472.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002161/0.3436, allocations: 232.6 kB / 473 MB, free: 9.863 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002319/0.3439, allocations: 150.6 kB / 473.2 MB, free: 9.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002135/0.3441, allocations: 394.8 kB / 473.6 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004902/0.3446, allocations: 309.8 kB / 473.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006805/0.3453, allocations: 0.5153 MB / 474.4 MB, free: 8.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003662/0.349, allocations: 1.676 MB / 476.1 MB, free: 6.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.386e-05/0.349, allocations: 4 kB / 476.1 MB, free: 6.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002203/0.3512, allocations: 1.274 MB / 477.3 MB, free: 5.336 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.3513, allocations: 11.94 kB / 477.3 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.3513, allocations: 12.17 kB / 477.4 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.3523, allocations: 401.3 kB / 477.8 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005099/0.3528, allocations: 155.8 kB / 477.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00805/0.3609, allocations: 6.233 MB / 484.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000695/0.3616, allocations: 27.98 kB / 484.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.78e-05/0.3617, allocations: 36 kB / 484.2 MB, free: 14.17 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.0006933/0.3624, allocations: 353.5 kB / 484.5 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001572/0.3626, allocations: 79.06 kB / 484.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001601/0.3642, allocations: 0.8994 MB / 485.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.3642, allocations: 8 kB / 485.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.3642, allocations: 4 kB / 485.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.3642, allocations: 0 / 485.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003328/0.3676, allocations: 2.01 MB / 487.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.3676, allocations: 4 kB / 487.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005972/0.3682, allocations: 123.8 kB / 487.7 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005154/0.3687, allocations: 186.6 kB / 487.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/0.3688, allocations: 23.98 kB / 487.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004422/0.3733, allocations: 5.48 MB / 493.4 MB, free: 4.441 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.3733, allocations: 8.094 kB / 493.4 MB, free: 4.434 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/0.3752, allocations: 1.263 MB / 494.6 MB, free: 3.129 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003742/0.3756, allocations: 216 kB / 494.8 MB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.706e-05/0.3757, allocations: 16 kB / 494.8 MB, free: 2.883 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003344/0.376, allocations: 15.98 kB / 494.9 MB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.3762, allocations: 52.5 kB / 494.9 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.605e-05/0.3762, allocations: 19.98 kB / 494.9 MB, free: 2.797 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006783/0.3769, allocations: 0.4912 MB / 495.4 MB, free: 2.312 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3769, allocations: 0 / 495.4 MB, free: 2.312 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001134/0.3781, allocations: 248 kB / 495.7 MB, free: 2.07 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.001082/0.3791, allocations: 425.6 kB / 496.1 MB, free: 1.703 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002029/0.3812, allocations: 1.145 MB / 497.2 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3812, allocations: 0 / 497.2 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009547/0.3822, allocations: 0.7114 MB / 497.9 MB, free: 15.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008763/0.3831, allocations: 186.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.003904/0.387, 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.0008519/0.3878, allocations: 1.15 MB / 0.49 GB, free: 11.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004537/0.3883, allocations: 154.6 kB / 0.4902 GB, free: 11.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.3885, allocations: 63.42 kB / 0.4902 GB, free: 11.66 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3885, allocations: 4 kB / 0.4902 GB, free: 11.65 MB / 382.1 MB Notification: Performance of Templates: time 0.02251/0.411, allocations: 12.44 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 cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe 2>&1)