Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.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_PSGI,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGI,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGI",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.001575/0.001575, allocations: 106.3 kB / 16.92 MB, free: 5.895 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.00189/0.00189, allocations: 191.3 kB / 17.85 MB, free: 5.184 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.411/1.411, allocations: 222.9 MB / 241.6 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1968/0.1968, allocations: 38.03 MB / 329.7 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 65.64 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09951/0.1008, allocations: 58.07 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01329/0.1142, allocations: 11.01 MB / 468 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01105/0.1253, allocations: 7.082 MB / 475.1 MB, free: 5.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001399/0.1267, allocations: 59.69 kB / 475.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02249/0.1492, allocations: 12.86 MB / 488 MB, free: 8.871 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003843/0.1531, allocations: 1.124 MB / 489.1 MB, free: 7.742 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002286/0.1554, allocations: 0.69 MB / 489.8 MB, free: 7.051 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005868/0.1613, allocations: 4.012 MB / 493.8 MB, free: 3.031 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001665/0.163, allocations: 1 MB / 494.8 MB, free: 2.008 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002225/0.1652, allocations: 1.113 MB / 495.9 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002667/0.1679, allocations: 1.444 MB / 497.4 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006021/0.1685, allocations: 148 kB / 497.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001466/0.17, allocations: 0.5227 MB / 498 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001475/0.1715, allocations: 0.8885 MB / 498.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002394/0.1739, allocations: 0.9873 MB / 499.9 MB, free: 12.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004376/0.1783, allocations: 2.527 MB / 0.4907 GB, free: 10.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.063e-05/0.1784, allocations: 0 / 0.4907 GB, free: 10.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.1784, allocations: 4 kB / 0.4907 GB, free: 10.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001776/0.1786, allocations: 0 / 0.4907 GB, free: 10.35 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.00604/0.1846, allocations: 2.221 MB / 0.4928 GB, free: 8.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.1847, allocations: 11.89 kB / 0.4928 GB, free: 8.059 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005139/0.1852, allocations: 236.5 kB / 0.4931 GB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002118/0.1873, allocations: 341.9 kB / 0.4934 GB, free: 7.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002848/0.1902, allocations: 1.276 MB / 0.4946 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.068e-05/0.1903, allocations: 106.7 kB / 0.4947 GB, free: 6.051 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006565/0.191, allocations: 235.8 kB / 0.495 GB, free: 5.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003987/0.195, allocations: 2.188 MB / 0.4971 GB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.152e-05/0.1951, allocations: 15.83 kB / 0.4971 GB, free: 3.512 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002043/0.1953, allocations: 55.98 kB / 0.4972 GB, free: 3.457 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006754/0.196, allocations: 186.8 kB / 0.4973 GB, free: 3.273 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003499/0.1995, allocations: 1.83 MB / 0.4991 GB, free: 1.438 MB / 382.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.2247/0.4242, allocations: 8.557 MB / 0.5075 GB, free: 52.29 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002739/0.427, allocations: 1.908 MB / 0.5094 GB, free: 51.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001336/0.4283, allocations: 0.8028 MB / 0.5101 GB, free: 50.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.324e-05/0.4284, allocations: 18.94 kB / 0.5102 GB, free: 50.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.4285, allocations: 53.03 kB / 0.5102 GB, free: 50.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 3.396e-06/0.4285, allocations: 0 / 0.5102 GB, free: 50.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=145): time 0.01235/0.4408, allocations: 5.947 MB / 0.516 GB, free: 48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.301e-05/0.4409, allocations: 94.36 kB / 0.5161 GB, free: 47.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001388/0.4423, allocations: 1.063 MB / 0.5171 GB, free: 47.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.257e-05/0.4424, allocations: 51.17 kB / 0.5172 GB, free: 47.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004316/0.4429, allocations: 0.7931 MB / 0.518 GB, free: 46.83 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003439/0.4432, allocations: 0.5218 MB / 0.5185 GB, free: 46.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004457/0.4437, allocations: 329.6 kB / 0.5188 GB, free: 46.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.542e-05/0.4437, allocations: 309.7 kB / 0.5191 GB, free: 45.97 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/0.4449, allocations: 0.7367 MB / 0.5198 GB, free: 45.74 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001352/0.4463, allocations: 1.224 MB / 0.521 GB, free: 44.93 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.009443/0.4557, allocations: 4.354 MB / 0.5253 GB, free: 43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-05/0.4558, allocations: 3.969 kB / 0.5253 GB, free: 43 MB / 382.1 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.006976/0.4627, allocations: 3.966 MB / 0.5291 GB, free: 40.69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/0.4628, allocations: 15.69 kB / 0.5291 GB, free: 40.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.218e-05/0.4628, allocations: 15.47 kB / 0.5292 GB, free: 40.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003608/0.4664, allocations: 1.468 MB / 0.5306 GB, free: 39.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009758/0.4674, allocations: 287.5 kB / 0.5309 GB, free: 39.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01904/0.4865, allocations: 20.97 MB / 0.5513 GB, free: 17.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00141/0.4879, allocations: 87.78 kB / 0.5514 GB, free: 17.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000142/0.4881, allocations: 84.08 kB / 0.5515 GB, free: 17.43 MB / 382.1 MB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization system: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 $DER.PI.x = 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: 66 * 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 (144): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,2,100.0%), (1,1,100.0%), (1,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,22), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0008032/0.4889, allocations: 0.5191 MB / 0.552 GB, free: 16.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002231/0.4891, allocations: 146.2 kB / 0.5522 GB, free: 16.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002934/0.4921, allocations: 2.217 MB / 0.5543 GB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.4921, allocations: 12 kB / 0.5543 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.4921, allocations: 4 kB / 0.5543 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.4921, allocations: 7.969 kB / 0.5543 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005847/0.498, allocations: 3.992 MB / 0.5582 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.498, allocations: 4 kB / 0.5582 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00156/0.4996, allocations: 339.5 kB / 0.5586 GB, free: 9.965 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004995/0.5001, allocations: 216.1 kB / 0.5588 GB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001076/0.5002, allocations: 51.97 kB / 0.5588 GB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004116/0.5043, allocations: 7.927 MB / 0.5666 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.5043, allocations: 7.984 kB / 0.5666 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004298/0.5087, allocations: 2.93 MB / 0.5694 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000773/0.5094, allocations: 343.1 kB / 0.5698 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002508/0.5097, allocations: 47.98 kB / 0.5698 GB, free: 13.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007945/0.5105, allocations: 59.88 kB / 0.5699 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002456/0.5108, allocations: 109 kB / 0.57 GB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.603e-05/0.5109, allocations: 39.98 kB / 0.57 GB, free: 13.4 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009511/0.5118, allocations: 0.71 MB / 0.5707 GB, free: 12.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5118, allocations: 0 / 0.5707 GB, free: 12.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002171/0.514, allocations: 0.5453 MB / 0.5712 GB, free: 12.14 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 26 (inertia.phi,inertia.w,meterDC.pav,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],inverter2.vDC1,line.v[1,2],line.v[1,3],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],PI.x) * 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 (137): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (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.004772/0.5188, allocations: 3.555 MB / 0.5747 GB, free: 8.441 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007307/0.5261, allocations: 4.205 MB / 0.5788 GB, free: 4.176 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.5262, allocations: 4 kB / 0.5788 GB, free: 4.172 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002158/0.5283, allocations: 1.41 MB / 0.5802 GB, free: 2.699 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001613/0.5299, allocations: 338.5 kB / 0.5805 GB, free: 2.379 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03323/0.5632, allocations: 19.95 MB / 0.6 GB, free: 13.46 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001525/0.5648, allocations: 1.588 MB / 0.6015 GB, free: 11.84 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001551/0.5663, allocations: 440.7 kB / 0.602 GB, free: 11.4 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000977/0.5673, allocations: 0.675 MB / 0.6026 GB, free: 10.73 MB / 430.1 MB Notification: Performance of SimCode: time 1.052e-06/0.5673, allocations: 0 / 0.6026 GB, free: 10.73 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1028/0.6701, allocations: 43.23 MB / 0.6448 GB, free: 15.79 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.43/13.1, allocations: 19.98 kB / 0.6449 GB, free: 15.77 MB / 478.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI_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_PSGI.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)