Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_IG,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_IG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_IG,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_IG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 110.1 kB / 16.92 MB, free: 5.766 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.001995/0.001995, allocations: 191.3 kB / 17.85 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 241.6 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1805/0.1805, allocations: 38.01 MB / 329.7 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 64.94 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1034, allocations: 58.07 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_IG): time 0.01008/0.1135, allocations: 8.081 MB / 465 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008448/0.122, allocations: 5.483 MB / 470.5 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007167/0.1228, allocations: 27.81 kB / 470.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01037/0.1332, allocations: 5.243 MB / 475.8 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002115/0.1353, allocations: 0.8324 MB / 476.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00143/0.1367, allocations: 495 kB / 477.1 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003578/0.1403, allocations: 2.526 MB / 479.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.1414, allocations: 0.6182 MB / 480.3 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001802/0.1433, allocations: 0.7745 MB / 481 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00175/0.145, allocations: 1.028 MB / 482.1 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003715/0.1454, allocations: 104 kB / 482.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001049/0.1465, allocations: 367.5 kB / 482.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008319/0.1473, allocations: 0.6625 MB / 483.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001192/0.1485, allocations: 0.6881 MB / 483.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002458/0.151, allocations: 1.698 MB / 485.6 MB, free: 11.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.722e-06/0.151, allocations: 3.938 kB / 485.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.151, allocations: 0 / 485.6 MB, free: 11.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.165e-05/0.1511, allocations: 0 / 485.6 MB, free: 11.25 MB / 366.1 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.005351/0.1565, allocations: 1.585 MB / 487.2 MB, free: 9.613 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.1566, allocations: 15.89 kB / 487.2 MB, free: 9.598 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003937/0.157, allocations: 169.2 kB / 487.3 MB, free: 9.422 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001553/0.1585, allocations: 219.1 kB / 487.5 MB, free: 9.207 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002144/0.1607, allocations: 0.9292 MB / 488.5 MB, free: 8.234 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.986e-05/0.1608, allocations: 65.98 kB / 488.5 MB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004999/0.1613, allocations: 195.7 kB / 488.7 MB, free: 7.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002297/0.1636, allocations: 1.556 MB / 490.3 MB, free: 6.344 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.529e-05/0.1636, allocations: 8 kB / 490.3 MB, free: 6.336 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/0.1637, allocations: 39.98 kB / 490.3 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006092/0.1644, allocations: 149.9 kB / 490.5 MB, free: 6.148 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001936/0.1663, allocations: 1.249 MB / 491.7 MB, free: 4.891 MB / 366.1 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.008095/0.1744, allocations: 6.497 MB / 498.2 MB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/0.1759, allocations: 0.9088 MB / 499.1 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007325/0.1766, allocations: 0.5083 MB / 499.6 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.164e-05/0.1767, allocations: 12.98 kB / 499.7 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.1767, allocations: 43.56 kB / 499.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 2.434e-06/0.1767, allocations: 3.938 kB / 499.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=96): time 0.006391/0.1831, allocations: 3.675 MB / 0.4916 GB, free: 8.684 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.1832, allocations: 86.11 kB / 0.4917 GB, free: 8.582 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008428/0.1841, allocations: 0.7272 MB / 0.4924 GB, free: 7.844 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.48e-05/0.1841, allocations: 45.7 kB / 0.4924 GB, free: 7.793 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003702/0.1845, allocations: 0.5496 MB / 0.493 GB, free: 7.234 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002971/0.1848, allocations: 370.8 kB / 0.4933 GB, free: 6.867 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003345/0.1852, allocations: 234.7 kB / 0.4935 GB, free: 6.633 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001923/0.1854, allocations: 418.7 kB / 0.4939 GB, free: 6.215 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009284/0.1863, allocations: 0.5608 MB / 0.4945 GB, free: 5.652 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001137/0.1874, allocations: 0.8854 MB / 0.4953 GB, free: 4.637 MB / 382.1 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.008429/0.1959, allocations: 3.247 MB / 0.4985 GB, free: 1.266 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.074e-05/0.1959, allocations: 0 / 0.4985 GB, free: 1.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.2262/0.4222, allocations: 2.731 MB / 0.5012 GB, free: 55.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.188e-05/0.4222, allocations: 11.41 kB / 0.5012 GB, free: 55.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.341e-05/0.4223, allocations: 10.58 kB / 0.5012 GB, free: 55.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004115/0.4264, allocations: 1.161 MB / 0.5023 GB, free: 55.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.4276, allocations: 198.6 kB / 0.5025 GB, free: 55.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02455/0.4522, allocations: 12.31 MB / 0.5145 GB, free: 50.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00157/0.4538, allocations: 57.58 kB / 0.5146 GB, free: 50.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002566/0.4541, allocations: 49.94 kB / 0.5146 GB, free: 50.23 MB / 382.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: $DER.inertia.w = 0.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 (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,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(24,28)} Notification: Performance of prepare postOptimizeDAE: time 0.001181/0.4553, allocations: 405.5 kB / 0.515 GB, free: 50 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003781/0.4557, allocations: 96.19 kB / 0.5151 GB, free: 50 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003223/0.4589, allocations: 1.41 MB / 0.5165 GB, free: 49.31 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.01e-05/0.459, allocations: 10.28 kB / 0.5165 GB, free: 49.31 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.459, allocations: 1.031 kB / 0.5165 GB, free: 49.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.568e-05/0.459, allocations: 15.34 kB / 0.5165 GB, free: 49.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005859/0.4649, allocations: 2.652 MB / 0.5191 GB, free: 48.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/0.4649, allocations: 0 / 0.5191 GB, free: 48.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002068/0.467, allocations: 273.4 kB / 0.5194 GB, free: 48.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002402/0.4673, allocations: 59.64 kB / 0.5194 GB, free: 48.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001242/0.4674, allocations: 40.44 kB / 0.5195 GB, free: 48.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001887/0.4693, allocations: 2.842 MB / 0.5223 GB, free: 45.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.4693, allocations: 5.719 kB / 0.5223 GB, free: 45.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003573/0.4729, allocations: 1.888 MB / 0.5241 GB, free: 44.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005235/0.4734, allocations: 258.9 kB / 0.5243 GB, free: 43.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001776/0.4736, allocations: 35.67 kB / 0.5244 GB, free: 43.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007786/0.4744, allocations: 47.52 kB / 0.5244 GB, free: 43.94 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.4746, allocations: 73.62 kB / 0.5245 GB, free: 43.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.745e-05/0.4747, allocations: 23.03 kB / 0.5245 GB, free: 43.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006916/0.4754, allocations: 0.4885 MB / 0.525 GB, free: 43.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4754, allocations: 0 / 0.525 GB, free: 43.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001788/0.4772, allocations: 378.2 kB / 0.5254 GB, free: 43.58 MB / 382.1 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 (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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003445/0.4807, allocations: 2.483 MB / 0.5278 GB, free: 41.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005766/0.4864, allocations: 2.572 MB / 0.5303 GB, free: 39.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.4865, allocations: 0 / 0.5303 GB, free: 39.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001274/0.4878, allocations: 0.7621 MB / 0.531 GB, free: 39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001481/0.4892, allocations: 223.5 kB / 0.5312 GB, free: 38.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02734/0.5166, allocations: 14.29 MB / 0.5452 GB, free: 24.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008847/0.5175, allocations: 1.302 MB / 0.5465 GB, free: 22.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001353/0.5189, allocations: 312 kB / 0.5468 GB, free: 22.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007135/0.5196, allocations: 459.3 kB / 0.5472 GB, free: 21.97 MB / 382.1 MB Notification: Performance of SimCode: time 1.533e-06/0.5196, allocations: 3.938 kB / 0.5472 GB, free: 21.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08026/0.5999, allocations: 29.8 MB / 0.5763 GB, free: 8.344 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.71, allocations: 3.984 kB / 0.5763 GB, free: 8.344 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 PowerSystems_PowerSystems_Examples_Wind_WindTurbine_IG.fmu > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_IG.pipe 2>&1)