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.001616/0.001616, allocations: 108.8 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.00182/0.00182, allocations: 195.9 kB / 18 MB, free: 5.09 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.354/1.354, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1773/0.1773, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 55.91 kB / 457.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3254, allocations: 58.07 MB / 0.5036 GB, free: 7.359 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.011/0.3364, allocations: 11.02 MB / 0.5144 GB, free: 15.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01194/0.3484, allocations: 7.075 MB / 0.5213 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001363/0.3498, allocations: 52.47 kB / 0.5213 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02147/0.3713, allocations: 12.87 MB / 0.5339 GB, free: 6.141 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002981/0.3743, allocations: 1.136 MB / 0.535 GB, free: 5.234 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001803/0.3761, allocations: 0.6884 MB / 0.5357 GB, free: 4.707 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005203/0.3813, allocations: 4.018 MB / 0.5396 GB, free: 2.609 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001452/0.3828, allocations: 0.991 MB / 0.5406 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001948/0.3848, allocations: 1.132 MB / 0.5417 GB, free: 1.395 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002355/0.3871, allocations: 1.436 MB / 0.5431 GB, free: 244 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004265/0.3876, allocations: 148 kB / 0.5432 GB, free: 96 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001325/0.3889, allocations: 0.5227 MB / 0.5437 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001007/0.3899, allocations: 0.9039 MB / 0.5446 GB, free: 14.66 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001752/0.3917, allocations: 0.9873 MB / 0.5456 GB, free: 13.67 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003302/0.395, allocations: 2.557 MB / 0.5481 GB, free: 11.11 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.395, allocations: 0 / 0.5481 GB, free: 11.11 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.395, allocations: 4 kB / 0.5481 GB, free: 11.1 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.628e-05/0.3951, allocations: 0 / 0.5481 GB, free: 11.1 MB / 414.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.004316/0.3994, allocations: 2.285 MB / 0.5503 GB, free: 8.754 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.3995, allocations: 15.88 kB / 0.5503 GB, free: 8.738 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002619/0.3997, allocations: 232.5 kB / 0.5506 GB, free: 8.5 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001771/0.4015, allocations: 347.1 kB / 0.5509 GB, free: 8.16 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00272/0.4042, allocations: 1.339 MB / 0.5522 GB, free: 6.777 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.582e-05/0.4043, allocations: 102.7 kB / 0.5523 GB, free: 6.676 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005654/0.4049, allocations: 235.8 kB / 0.5525 GB, free: 6.445 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003201/0.4081, allocations: 2.196 MB / 0.5547 GB, free: 4.145 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.585e-05/0.4082, allocations: 11.95 kB / 0.5547 GB, free: 4.133 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001442/0.4083, allocations: 55.98 kB / 0.5547 GB, free: 4.078 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006491/0.409, allocations: 194.8 kB / 0.5549 GB, free: 3.887 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002811/0.4118, allocations: 1.826 MB / 0.5567 GB, free: 2.055 MB / 414.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.01112/0.4229, allocations: 8.546 MB / 0.5651 GB, free: 9.094 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002469/0.4254, allocations: 1.905 MB / 0.5669 GB, free: 7.059 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001276/0.4267, allocations: 0.7903 MB / 0.5677 GB, free: 6.266 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.262e-05/0.4268, allocations: 21.3 kB / 0.5677 GB, free: 6.246 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.4269, allocations: 47.88 kB / 0.5677 GB, free: 6.191 MB / 430.1 MB Notification: Performance of pre-optimization done (n=130): time 3.346e-06/0.4269, allocations: 0 / 0.5677 GB, free: 6.191 MB / 430.1 MB Notification: Performance of matching and sorting (n=165): time 0.02262/0.4495, allocations: 9.265 MB / 0.5768 GB, free: 12.69 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.4496, allocations: 98.45 kB / 0.5769 GB, free: 12.58 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001279/0.4509, allocations: 1.071 MB / 0.5779 GB, free: 11.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.451, allocations: 53.64 kB / 0.578 GB, free: 11.44 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005228/0.4515, allocations: 0.8015 MB / 0.5788 GB, free: 10.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004603/0.452, allocations: 0.6198 MB / 0.5794 GB, free: 10 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005209/0.4525, allocations: 355.4 kB / 0.5797 GB, free: 9.648 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.077e-05/0.4526, allocations: 301.1 kB / 0.58 GB, free: 9.352 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001407/0.454, allocations: 0.8511 MB / 0.5808 GB, free: 8.496 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001698/0.4557, allocations: 1.348 MB / 0.5821 GB, free: 6.941 MB / 446.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.01291/0.4687, allocations: 5.183 MB / 0.5872 GB, free: 1.586 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-05/0.4687, allocations: 4 kB / 0.5872 GB, free: 1.582 MB / 446.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.009083/0.4778, allocations: 4.205 MB / 0.5913 GB, free: 13.31 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.4778, allocations: 11.98 kB / 0.5913 GB, free: 13.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.971e-05/0.4779, allocations: 16.69 kB / 0.5913 GB, free: 13.28 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004615/0.4825, allocations: 1.598 MB / 0.5929 GB, free: 11.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/0.4838, allocations: 319.4 kB / 0.5932 GB, free: 11.35 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0264/0.5102, allocations: 20.89 MB / 0.6136 GB, free: 5.598 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001438/0.5116, allocations: 91.92 kB / 0.6137 GB, free: 5.508 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002905/0.512, allocations: 83.98 kB / 0.6138 GB, free: 5.426 MB / 478.1 MB Warning: The initial conditions are over specified. The following 6 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 $DER.generator.psi_s[2] = 0.0 $DER.generator.psi_s[1] = 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 (152): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,3,100.0%), (1,8,100.0%), (1,1,100.0%), (3,24,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,22), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001195/0.5132, allocations: 0.5614 MB / 0.6143 GB, free: 4.855 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003588/0.5135, allocations: 159 kB / 0.6145 GB, free: 4.699 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005085/0.5186, allocations: 2.801 MB / 0.6172 GB, free: 1.793 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-05/0.5187, allocations: 16 kB / 0.6172 GB, free: 1.777 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.557e-05/0.5187, allocations: 8 kB / 0.6172 GB, free: 1.77 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.038e-05/0.5187, allocations: 7.969 kB / 0.6172 GB, free: 1.762 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009451/0.5282, allocations: 4.831 MB / 0.622 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/0.5282, allocations: 0 / 0.622 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001753/0.53, allocations: 339.9 kB / 0.6223 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001537/0.5315, allocations: 0.5016 MB / 0.6228 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001562/0.5317, allocations: 51.97 kB / 0.6228 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01113/0.5428, allocations: 12.75 MB / 0.6353 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/0.5428, allocations: 4.031 kB / 0.6353 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006246/0.5491, allocations: 3.717 MB / 0.6389 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008799/0.55, allocations: 379.8 kB / 0.6393 GB, free: 9.844 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002144/0.5502, allocations: 59.92 kB / 0.6393 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008737/0.5511, allocations: 67.92 kB / 0.6394 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002909/0.5514, allocations: 125.1 kB / 0.6395 GB, free: 9.598 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.5515, allocations: 47.98 kB / 0.6396 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0009559/0.5525, allocations: 0.7217 MB / 0.6403 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.91e-07/0.5525, allocations: 0 / 0.6403 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001958/0.5545, allocations: 0.5937 MB / 0.6408 GB, free: 8.23 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 24 (inertia.w,meterDC.pav,generator.phi_el,generator.i_s[3],generator.psi_s[1],generator.psi_s[2],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 (138): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 6 systems {(1,2,100.0%), (2,6,100.0%), (1,1,100.0%), (1,8,100.0%), (1,1,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006487/0.561, allocations: 4.359 MB / 0.6451 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005996/0.567, allocations: 3.503 MB / 0.6485 GB, free: 140 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.567, allocations: 0 / 0.6485 GB, free: 140 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002912/0.5699, allocations: 1.894 MB / 0.6504 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001673/0.5716, allocations: 358 kB / 0.6507 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03344/0.6051, allocations: 19.99 MB / 0.6702 GB, free: 9.012 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001402/0.6065, allocations: 1.649 MB / 0.6718 GB, free: 7.328 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001217/0.6077, allocations: 437.3 kB / 0.6723 GB, free: 6.895 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009191/0.6087, allocations: 0.7102 MB / 0.673 GB, free: 6.184 MB / 0.5294 GB Notification: Performance of SimCode: time 1.133e-06/0.6087, allocations: 0 / 0.673 GB, free: 6.184 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1071/0.7158, allocations: 47.83 MB / 0.7197 GB, free: 6.625 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.91/15.62, allocations: 4 kB / 0.7197 GB, free: 6.621 MB / 0.5762 GB (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)