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.001183/0.001183, allocations: 109.2 kB / 17.06 MB, free: 6.016 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.001266/0.001266, allocations: 192 kB / 18 MB, free: 5.102 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.357/1.357, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1781/0.1781, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00352/0.003521, allocations: 67.89 kB / 457.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6287/0.6322, allocations: 58.06 MB / 0.5036 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_IG): time 0.014/0.6463, allocations: 8.086 MB / 0.5115 GB, free: 1.812 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01604/0.6624, allocations: 5.485 MB / 0.5169 GB, free: 14 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002343/0.6649, allocations: 26.06 kB / 0.5169 GB, free: 13.99 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02599/0.6909, allocations: 5.237 MB / 0.522 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005323/0.6962, allocations: 0.8461 MB / 0.5228 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003017/0.6993, allocations: 0.4953 MB / 0.5233 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008399/0.7077, allocations: 2.525 MB / 0.5258 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002115/0.7099, allocations: 0.6369 MB / 0.5264 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002685/0.7126, allocations: 0.7722 MB / 0.5272 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004035/0.7167, allocations: 1.028 MB / 0.5282 GB, free: 9.766 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001016/0.7177, allocations: 104.2 kB / 0.5283 GB, free: 9.766 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002587/0.7204, allocations: 365.2 kB / 0.5286 GB, free: 9.645 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00188/0.7223, allocations: 0.6637 MB / 0.5293 GB, free: 9.223 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003243/0.7255, allocations: 0.6859 MB / 0.5299 GB, free: 8.766 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004751/0.7303, allocations: 1.724 MB / 0.5316 GB, free: 7.633 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.876e-06/0.7303, allocations: 1.719 kB / 0.5316 GB, free: 7.633 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.7304, allocations: 0 / 0.5316 GB, free: 7.633 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000121/0.7305, allocations: 0 / 0.5316 GB, free: 7.633 MB / 398.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.007211/0.7377, allocations: 1.633 MB / 0.5332 GB, free: 6.422 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.821e-05/0.7378, allocations: 12.83 kB / 0.5332 GB, free: 6.418 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006285/0.7384, allocations: 167.3 kB / 0.5334 GB, free: 6.285 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002071/0.7405, allocations: 222.8 kB / 0.5336 GB, free: 6.176 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003637/0.7442, allocations: 0.9668 MB / 0.5345 GB, free: 5.473 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001532/0.7444, allocations: 75.09 kB / 0.5346 GB, free: 5.434 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000881/0.7453, allocations: 187 kB / 0.5348 GB, free: 5.367 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004586/0.7499, allocations: 1.562 MB / 0.5363 GB, free: 4.402 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.046e-05/0.7499, allocations: 10.56 kB / 0.5363 GB, free: 4.395 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001154/0.7501, allocations: 41.33 kB / 0.5364 GB, free: 4.363 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007363/0.7508, allocations: 155.9 kB / 0.5365 GB, free: 4.309 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003099/0.7539, allocations: 1.249 MB / 0.5377 GB, free: 3.715 MB / 398.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.01421/0.7682, allocations: 6.46 MB / 0.544 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002595/0.7709, allocations: 0.9177 MB / 0.5449 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00119/0.7721, allocations: 0.5044 MB / 0.5454 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001228/0.7722, allocations: 16.98 kB / 0.5454 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.417e-05/0.7723, allocations: 43.56 kB / 0.5455 GB, free: 13.17 MB / 414.1 MB Notification: Performance of pre-optimization done (n=91): time 3.576e-06/0.7723, allocations: 0 / 0.5455 GB, free: 13.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.009397/0.7817, allocations: 3.71 MB / 0.5491 GB, free: 9.324 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002203/0.782, allocations: 90.11 kB / 0.5492 GB, free: 9.215 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001757/0.7838, allocations: 0.7273 MB / 0.5499 GB, free: 8.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001635/0.784, allocations: 45.7 kB / 0.5499 GB, free: 8.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007968/0.7848, allocations: 0.5705 MB / 0.5505 GB, free: 7.852 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005963/0.7854, allocations: 384.8 kB / 0.5509 GB, free: 7.473 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005977/0.786, allocations: 230.9 kB / 0.5511 GB, free: 7.242 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000363/0.7864, allocations: 414.8 kB / 0.5515 GB, free: 6.828 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00121/0.7876, allocations: 0.5686 MB / 0.552 GB, free: 6.258 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001445/0.7891, allocations: 0.8854 MB / 0.5529 GB, free: 5.242 MB / 414.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.01026/0.7993, allocations: 3.228 MB / 0.5561 GB, free: 1.891 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.827e-05/0.7994, allocations: 0 / 0.5561 GB, free: 1.891 MB / 414.1 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.007606/0.807, allocations: 2.749 MB / 0.5587 GB, free: 15.12 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.332e-05/0.8071, allocations: 8 kB / 0.5588 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.656e-05/0.8072, allocations: 8 kB / 0.5588 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003306/0.8105, allocations: 1.16 MB / 0.5599 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.8115, allocations: 203.7 kB / 0.5601 GB, free: 13.74 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02272/0.8343, allocations: 12.28 MB / 0.5721 GB, free: 1.168 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001359/0.8357, allocations: 59.94 kB / 0.5721 GB, free: 1.109 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003028/0.836, allocations: 55.94 kB / 0.5722 GB, free: 1.055 MB / 430.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.001122/0.8371, allocations: 413.4 kB / 0.5726 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003812/0.8375, allocations: 99.34 kB / 0.5727 GB, free: 0.543 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003922/0.8415, allocations: 1.412 MB / 0.5741 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.29e-05/0.8415, allocations: 12 kB / 0.5741 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.8415, allocations: 0 / 0.5741 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-05/0.8416, allocations: 3.984 kB / 0.5741 GB, free: 15.06 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00829/0.8499, allocations: 2.668 MB / 0.5767 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.377e-05/0.8499, allocations: 4 kB / 0.5767 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001762/0.8517, allocations: 279.8 kB / 0.5769 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002624/0.852, allocations: 53.69 kB / 0.577 GB, free: 11.94 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002105/0.8522, allocations: 43.97 kB / 0.577 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003371/0.8556, allocations: 2.839 MB / 0.5798 GB, free: 8.777 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.8557, allocations: 0 / 0.5798 GB, free: 8.777 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004114/0.8598, allocations: 1.901 MB / 0.5817 GB, free: 6.793 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009997/0.8608, allocations: 260.3 kB / 0.5819 GB, free: 6.52 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004085/0.8612, allocations: 35.98 kB / 0.582 GB, free: 6.484 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/0.8624, allocations: 47.95 kB / 0.582 GB, free: 6.438 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002718/0.8627, allocations: 68.8 kB / 0.5821 GB, free: 6.371 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.934e-05/0.8628, allocations: 27.98 kB / 0.5821 GB, free: 6.344 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008636/0.8637, allocations: 495 kB / 0.5826 GB, free: 5.863 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.8637, allocations: 0 / 0.5826 GB, free: 5.863 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002215/0.8659, allocations: 380 kB / 0.5829 GB, free: 5.492 MB / 446.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.004753/0.8707, allocations: 2.49 MB / 0.5854 GB, free: 2.906 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006698/0.8774, allocations: 2.123 MB / 0.5874 GB, free: 0.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.8775, allocations: 0 / 0.5874 GB, free: 0.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001978/0.8795, allocations: 0.762 MB / 0.5882 GB, free: 15.96 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00224/0.8817, allocations: 216.5 kB / 0.5884 GB, free: 15.76 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04122/0.923, allocations: 14.02 MB / 0.6021 GB, free: 1.285 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002708/0.9258, allocations: 1.302 MB / 0.6033 GB, free: 15.95 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001602/0.9275, allocations: 316 kB / 0.6036 GB, free: 15.64 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001329/0.9289, allocations: 459.3 kB / 0.6041 GB, free: 15.19 MB / 478.1 MB Notification: Performance of SimCode: time 2.344e-06/0.9289, allocations: 0 / 0.6041 GB, free: 15.19 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.104/1.033, allocations: 30.25 MB / 0.6336 GB, free: 1.164 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.65/22.68, allocations: 10.11 kB / 0.6336 GB, free: 1.156 MB / 494.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)