Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_IG.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.Wind.WindTurbine_IG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_IG") translateModel(PowerSystems.Examples.Wind.WindTurbine_IG,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_IG") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008651/0.0008651, allocations: 170.6 kB / 16.07 MB, free: 5.695 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.209/1.209, allocations: 205.4 MB / 222.2 MB, free: 9.023 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.000697/0.000697, allocations: 76.23 kB / 270.6 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1649/0.1649, allocations: 38.08 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003232/0.0003232, allocations: 8 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2353, allocations: 56.32 MB / 479.6 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_IG): time 0.00811/0.2434, allocations: 8.39 MB / 488 MB, free: 3.531 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.008018/0.2515, allocations: 5.504 MB / 493.5 MB, free: 15.68 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001309/0.2528, allocations: 46.34 kB / 493.6 MB, free: 15.66 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0106/0.2634, allocations: 4.707 MB / 498.3 MB, free: 14.43 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002634/0.2661, allocations: 0.856 MB / 499.1 MB, free: 13.98 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001577/0.2677, allocations: 0.4888 MB / 499.6 MB, free: 13.62 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004058/0.2717, allocations: 3.031 MB / 0.4909 GB, free: 11.94 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001724/0.2735, allocations: 0.8829 MB / 0.4917 GB, free: 11.32 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001423/0.2749, allocations: 0.6453 MB / 0.4924 GB, free: 10.98 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001781/0.2767, allocations: 1.031 MB / 0.4934 GB, free: 10.46 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003203/0.277, allocations: 53.81 kB / 0.4934 GB, free: 10.46 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001123/0.2782, allocations: 322.8 kB / 0.4937 GB, free: 10.32 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009113/0.2791, allocations: 0.6209 MB / 0.4943 GB, free: 9.953 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001105/0.2802, allocations: 0.6167 MB / 0.4949 GB, free: 9.555 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001538/0.2818, allocations: 1.296 MB / 0.4962 GB, free: 8.715 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2818, allocations: 1.375 kB / 0.4962 GB, free: 8.715 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2818, allocations: 0 / 0.4962 GB, free: 8.715 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.794e-05/0.2819, allocations: 0 / 0.4962 GB, free: 8.715 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.003961/0.2858, allocations: 1.362 MB / 0.4975 GB, free: 7.688 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.2859, allocations: 12.19 kB / 0.4975 GB, free: 7.684 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001358/0.2873, allocations: 211 kB / 0.4977 GB, free: 7.586 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002021/0.2893, allocations: 0.9307 MB / 0.4986 GB, free: 6.902 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.098e-05/0.2894, allocations: 67.73 kB / 0.4987 GB, free: 6.875 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004965/0.2899, allocations: 190.9 kB / 0.4989 GB, free: 6.805 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002571/0.2925, allocations: 1.563 MB / 0.5004 GB, free: 5.355 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.882e-05/0.2925, allocations: 4 kB / 0.5004 GB, free: 5.352 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/0.2926, allocations: 43.98 kB / 0.5005 GB, free: 5.309 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005172/0.2932, allocations: 149.9 kB / 0.5006 GB, free: 5.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002164/0.2953, allocations: 1.257 MB / 0.5018 GB, free: 3.895 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008004/0.3033, allocations: 6.505 MB / 0.5082 GB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/0.3048, allocations: 0.9134 MB / 0.5091 GB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007346/0.3055, allocations: 0.5122 MB / 0.5096 GB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.115e-05/0.3056, allocations: 20.97 kB / 0.5096 GB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/0.3057, allocations: 39.56 kB / 0.5096 GB, free: 11.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=91): time 2.745e-06/0.3057, allocations: 7.875 kB / 0.5096 GB, free: 11.49 MB / 346.7 MB Notification: Performance of matching and sorting (n=96): time 0.006301/0.312, allocations: 3.695 MB / 0.5133 GB, free: 7.652 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.3121, allocations: 90.05 kB / 0.5133 GB, free: 7.547 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008579/0.3129, allocations: 0.7233 MB / 0.514 GB, free: 6.812 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.206e-05/0.313, allocations: 45.73 kB / 0.5141 GB, free: 6.762 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003622/0.3134, allocations: 0.5535 MB / 0.5146 GB, free: 6.199 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002822/0.3137, allocations: 366.8 kB / 0.515 GB, free: 5.836 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.744e-05/0.3138, allocations: 27.94 kB / 0.515 GB, free: 5.809 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.314, allocations: 414.7 kB / 0.5154 GB, free: 5.395 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009388/0.3149, allocations: 0.5647 MB / 0.516 GB, free: 4.828 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001096/0.316, allocations: 0.8853 MB / 0.5168 GB, free: 3.809 MB / 346.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.009051/0.3251, allocations: 3.906 MB / 0.5206 GB, free: 15.76 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-06/0.3251, allocations: 0 / 0.5206 GB, free: 15.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.005325/0.3304, allocations: 2.737 MB / 0.5233 GB, free: 13.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/0.3305, allocations: 18.59 kB / 0.5233 GB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.3305, allocations: 8 kB / 0.5233 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002732/0.3332, allocations: 1.148 MB / 0.5245 GB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007695/0.334, allocations: 207.7 kB / 0.5247 GB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01613/0.3502, allocations: 11.2 MB / 0.5356 GB, free: 140 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009324/0.3511, allocations: 59.94 kB / 0.5357 GB, free: 80 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001217/0.3513, allocations: 52 kB / 0.5357 GB, free: 28 kB / 362.7 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem: rotor.A = 3.141592653589793 * rotor.R ^ 2.0 infBus.V = 15000.0 * infBus.v0 line.omega[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,trafo.tap_2_internal,trafo.tap_1_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 94 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 17} * Non-linear torn systems: 1 {24 28} Notification: Performance of prepare postOptimizeDAE: time 0.0007008/0.352, allocations: 409.4 kB / 0.5361 GB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001489/0.3521, allocations: 94.78 kB / 0.5362 GB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002182/0.3543, allocations: 1.416 MB / 0.5376 GB, free: 14.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.3543, allocations: 12 kB / 0.5376 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3543, allocations: 0 / 0.5376 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.263e-05/0.3544, allocations: 7.922 kB / 0.5376 GB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004222/0.3586, allocations: 2.695 MB / 0.5402 GB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.3586, allocations: 0 / 0.5402 GB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001432/0.36, allocations: 283.8 kB / 0.5405 GB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001557/0.3602, allocations: 53.67 kB / 0.5405 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.793e-05/0.3603, allocations: 39.98 kB / 0.5406 GB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001807/0.3621, allocations: 2.63 MB / 0.5431 GB, free: 7.953 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.3621, allocations: 4 kB / 0.5431 GB, free: 7.949 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002674/0.3648, allocations: 1.902 MB / 0.545 GB, free: 5.965 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004371/0.3653, allocations: 263.8 kB / 0.5453 GB, free: 5.688 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001377/0.3654, allocations: 35.98 kB / 0.5453 GB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005123/0.3659, allocations: 51.83 kB / 0.5453 GB, free: 5.602 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.3661, allocations: 64.8 kB / 0.5454 GB, free: 5.539 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.698e-05/0.3662, allocations: 35.98 kB / 0.5454 GB, free: 5.504 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005942/0.3668, allocations: 491 kB / 0.5459 GB, free: 5.027 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3668, allocations: 0 / 0.5459 GB, free: 5.027 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00124/0.368, allocations: 384 kB / 0.5463 GB, free: 4.652 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 25 (generator.i[3],generator.psi_s[1],generator.psi_s[2],generator.psi_rd[1],generator.psi_rq[1],line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[2,1],line.i[2,2],line.i[2,3],line.i[3,1],line.i[3,2],line.i[3,3],inertia.phi,inertia.w) * 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 (95): * Single equations (assignments): 92 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001824/0.3682, allocations: 142.6 kB / 0.5464 GB, free: 4.504 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003462/0.3717, allocations: 2.073 MB / 0.5484 GB, free: 2.398 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3717, allocations: 4 kB / 0.5484 GB, free: 2.395 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.3728, allocations: 0.7608 MB / 0.5492 GB, free: 1.609 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001122/0.3739, allocations: 203.7 kB / 0.5494 GB, free: 1.414 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006543/0.3805, allocations: 4.966 MB / 0.5542 GB, free: 12.38 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009152/0.3814, allocations: 1.298 MB / 0.5555 GB, free: 11.05 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003313/0.3817, allocations: 79.44 kB / 0.5556 GB, free: 10.97 MB / 394.7 MB Notification: Performance of SimCode: time 5.11e-07/0.3817, allocations: 0 / 0.5556 GB, free: 10.97 MB / 394.7 MB Notification: Performance of Templates: time 0.0275/0.4092, allocations: 23.73 MB / 0.5787 GB, free: 3.191 MB / 410.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_IG.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_IG.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_IG.sim & ./PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_IG --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_IG.pipe 2>&1)