Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_Wind_WindTurbine_IG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_IG,fileNamePrefix="PowerSystems_latest_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.001368/0.001368, allocations: 104.5 kB / 16.92 MB, free: 6.199 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.001749/0.001749, allocations: 191.4 kB / 17.85 MB, free: 5.301 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.377/1.377, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1912/0.1912, allocations: 38.04 MB / 329.7 MB, free: 8.824 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002503/0.002504, allocations: 63.53 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1468, allocations: 58.06 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_IG): time 0.0096/0.1565, allocations: 8.085 MB / 465 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008982/0.1655, allocations: 5.491 MB / 470.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001251/0.1668, allocations: 27.81 kB / 470.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0105/0.1773, allocations: 5.233 MB / 475.8 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001952/0.1793, allocations: 0.8324 MB / 476.6 MB, free: 4.219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001212/0.1805, allocations: 0.4912 MB / 477.1 MB, free: 3.727 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003035/0.1836, allocations: 2.522 MB / 479.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009164/0.1845, allocations: 0.626 MB / 480.3 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001134/0.1857, allocations: 0.7628 MB / 481 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001415/0.1871, allocations: 1.036 MB / 482.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002546/0.1874, allocations: 104 kB / 482.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007788/0.1882, allocations: 371.5 kB / 482.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006457/0.1888, allocations: 0.6508 MB / 483.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008782/0.1897, allocations: 0.6959 MB / 483.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001659/0.1914, allocations: 1.694 MB / 485.6 MB, free: 11.24 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1914, allocations: 0 / 485.6 MB, free: 11.24 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1914, allocations: 0 / 485.6 MB, free: 11.24 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.342e-05/0.1914, allocations: 0 / 485.6 MB, free: 11.24 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.003441/0.1949, allocations: 1.597 MB / 487.2 MB, free: 9.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.1949, allocations: 11.89 kB / 487.2 MB, free: 9.578 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002459/0.1952, allocations: 165.2 kB / 487.3 MB, free: 9.406 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00128/0.1965, allocations: 215.1 kB / 487.6 MB, free: 9.195 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001912/0.1984, allocations: 0.9254 MB / 488.5 MB, free: 8.227 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.747e-05/0.1985, allocations: 69.98 kB / 488.5 MB, free: 8.16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004717/0.1989, allocations: 187.7 kB / 488.7 MB, free: 7.977 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00237/0.2013, allocations: 1.57 MB / 490.3 MB, free: 6.328 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.772e-05/0.2014, allocations: 7.938 kB / 490.3 MB, free: 6.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001069/0.2015, allocations: 35.98 kB / 490.3 MB, free: 6.285 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006275/0.2021, allocations: 157.9 kB / 490.5 MB, free: 6.129 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002148/0.2043, allocations: 1.245 MB / 491.7 MB, free: 4.875 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.008745/0.213, allocations: 6.501 MB / 498.2 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001605/0.2147, allocations: 0.9088 MB / 499.2 MB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008199/0.2155, allocations: 0.5121 MB / 499.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.287e-05/0.2156, allocations: 9 kB / 499.7 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.2156, allocations: 47.55 kB / 499.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 2.926e-06/0.2156, allocations: 0 / 499.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=96): time 0.006814/0.2225, allocations: 3.671 MB / 0.4916 GB, free: 8.668 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.215e-05/0.2225, allocations: 94.11 kB / 0.4917 GB, free: 8.559 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009411/0.2235, allocations: 0.7272 MB / 0.4924 GB, free: 7.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.949e-05/0.2236, allocations: 41.73 kB / 0.4924 GB, free: 7.773 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004218/0.224, allocations: 0.5613 MB / 0.493 GB, free: 7.203 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000288/0.2243, allocations: 362.8 kB / 0.4933 GB, free: 6.844 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003451/0.2247, allocations: 234.8 kB / 0.4935 GB, free: 6.609 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.2248, allocations: 414.7 kB / 0.4939 GB, free: 6.195 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009236/0.2258, allocations: 0.5647 MB / 0.4945 GB, free: 5.629 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.2269, allocations: 0.8815 MB / 0.4954 GB, free: 4.617 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.007994/0.2349, allocations: 3.251 MB / 0.4985 GB, free: 1.242 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.2349, allocations: 4 kB / 0.4985 GB, free: 1.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.005632/0.2406, allocations: 2.74 MB / 0.5012 GB, free: 14.48 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.2406, allocations: 10.19 kB / 0.5012 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-05/0.2406, allocations: 8 kB / 0.5012 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00277/0.2434, allocations: 1.16 MB / 0.5024 GB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007565/0.2442, allocations: 203.6 kB / 0.5026 GB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01707/0.2613, allocations: 12.29 MB / 0.5146 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008385/0.2621, allocations: 59.97 kB / 0.5146 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001382/0.2623, allocations: 55.98 kB / 0.5147 GB, free: 400 kB / 398.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.1872/0.4495, allocations: 395.7 kB / 0.5151 GB, free: 71.15 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003764/0.4499, allocations: 96.28 kB / 0.5151 GB, free: 71.15 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002991/0.4529, allocations: 1.408 MB / 0.5165 GB, free: 70.89 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.931e-05/0.4529, allocations: 10.02 kB / 0.5165 GB, free: 70.89 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/0.4529, allocations: 2.469 kB / 0.5165 GB, free: 70.89 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/0.453, allocations: 5.844 kB / 0.5165 GB, free: 70.89 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005027/0.458, allocations: 2.667 MB / 0.5191 GB, free: 70.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/0.458, allocations: 5.219 kB / 0.5191 GB, free: 70.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001529/0.4596, allocations: 273.6 kB / 0.5194 GB, free: 70.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000179/0.4597, allocations: 59.06 kB / 0.5195 GB, free: 70.2 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001139/0.4599, allocations: 36.25 kB / 0.5195 GB, free: 70.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001488/0.4614, allocations: 2.836 MB / 0.5223 GB, free: 67.39 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.4614, allocations: 3.078 kB / 0.5223 GB, free: 67.39 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002928/0.4643, allocations: 1.892 MB / 0.5241 GB, free: 66.51 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005189/0.4649, allocations: 256.5 kB / 0.5244 GB, free: 66.39 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001995/0.4651, allocations: 42.19 kB / 0.5244 GB, free: 66.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006624/0.4657, allocations: 44.53 kB / 0.5244 GB, free: 66.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001845/0.4659, allocations: 69 kB / 0.5245 GB, free: 66.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.516e-05/0.466, allocations: 31.72 kB / 0.5245 GB, free: 66.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007848/0.4668, allocations: 498.6 kB / 0.525 GB, free: 66.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4668, allocations: 0 / 0.525 GB, free: 66.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001725/0.4685, allocations: 373.2 kB / 0.5254 GB, free: 66.1 MB / 398.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.003311/0.4719, allocations: 2.474 MB / 0.5278 GB, free: 64.66 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004589/0.4765, allocations: 2.581 MB / 0.5303 GB, free: 63.8 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.4765, allocations: 1.094 kB / 0.5303 GB, free: 63.8 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.4776, allocations: 0.7682 MB / 0.5311 GB, free: 63.42 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001122/0.4787, allocations: 209.4 kB / 0.5313 GB, free: 63.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02293/0.5016, allocations: 14.3 MB / 0.5452 GB, free: 55.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009201/0.5026, allocations: 1.298 MB / 0.5465 GB, free: 54.3 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009703/0.5036, allocations: 316 kB / 0.5468 GB, free: 53.99 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005975/0.5042, allocations: 459.3 kB / 0.5472 GB, free: 53.54 MB / 398.1 MB Notification: Performance of SimCode: time 1.212e-06/0.5042, allocations: 0 / 0.5472 GB, free: 53.54 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05616/0.5604, allocations: 29.8 MB / 0.5763 GB, free: 23.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.37, allocations: 6.141 kB / 0.5763 GB, free: 23.96 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_Wind_WindTurbine_IG.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe 2>&1)