Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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_PSGI,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGI,fileNamePrefix="PowerSystems_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.001632/0.001632, allocations: 110.7 kB / 17.06 MB, free: 5.828 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.001837/0.001837, allocations: 200 kB / 18.01 MB, free: 4.938 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.48/1.48, 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/package.mo): time 0.1875/0.1875, allocations: 38.04 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001936, allocations: 63.91 kB / 457.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3391/0.341, allocations: 58.06 MB / 0.5036 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01085/0.3519, allocations: 11.02 MB / 0.5144 GB, free: 15.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01266/0.3646, allocations: 7.074 MB / 0.5213 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001363/0.366, allocations: 53.25 kB / 0.5213 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02396/0.39, allocations: 12.87 MB / 0.5339 GB, free: 6.199 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003424/0.3934, allocations: 1.12 MB / 0.535 GB, free: 5.305 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002071/0.3955, allocations: 0.6873 MB / 0.5357 GB, free: 4.777 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006328/0.4018, allocations: 4.015 MB / 0.5396 GB, free: 2.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001545/0.4034, allocations: 0.9959 MB / 0.5406 GB, free: 2.105 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002203/0.4056, allocations: 1.112 MB / 0.5417 GB, free: 1.469 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002643/0.4083, allocations: 1.448 MB / 0.5431 GB, free: 208 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003859/0.4087, allocations: 148 kB / 0.5432 GB, free: 60 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001417/0.4101, allocations: 0.5071 MB / 0.5437 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001019/0.4111, allocations: 0.9079 MB / 0.5446 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001381/0.4125, allocations: 0.9912 MB / 0.5456 GB, free: 13.64 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004649/0.4172, allocations: 2.565 MB / 0.5481 GB, free: 11.07 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.894e-06/0.4173, allocations: 0 / 0.5481 GB, free: 11.07 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4173, allocations: 0 / 0.5481 GB, free: 11.07 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000103/0.4174, allocations: 0 / 0.5481 GB, free: 11.07 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.005385/0.4228, allocations: 2.281 MB / 0.5503 GB, free: 8.727 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.4228, allocations: 8.031 kB / 0.5503 GB, free: 8.719 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003117/0.4231, allocations: 228.5 kB / 0.5505 GB, free: 8.484 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001898/0.4251, allocations: 351.1 kB / 0.5509 GB, free: 8.141 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002841/0.4279, allocations: 1.331 MB / 0.5522 GB, free: 6.766 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.769e-05/0.428, allocations: 114.7 kB / 0.5523 GB, free: 6.652 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005699/0.4286, allocations: 235.8 kB / 0.5525 GB, free: 6.422 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003596/0.4322, allocations: 2.188 MB / 0.5546 GB, free: 4.129 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.749e-05/0.4323, allocations: 15.88 kB / 0.5546 GB, free: 4.113 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000156/0.4324, allocations: 59.98 kB / 0.5547 GB, free: 4.055 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006738/0.4331, allocations: 190.8 kB / 0.5549 GB, free: 3.867 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003253/0.4364, allocations: 1.827 MB / 0.5567 GB, free: 2.035 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.01233/0.4487, allocations: 8.546 MB / 0.565 GB, free: 9.074 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002861/0.4516, allocations: 1.909 MB / 0.5669 GB, free: 7.035 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001453/0.4531, allocations: 0.7847 MB / 0.5676 GB, free: 6.25 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.16e-05/0.4532, allocations: 29.38 kB / 0.5677 GB, free: 6.223 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.17e-05/0.4532, allocations: 43.88 kB / 0.5677 GB, free: 6.172 MB / 430.1 MB Notification: Performance of pre-optimization done (n=130): time 2.996e-06/0.4532, allocations: 3.938 kB / 0.5677 GB, free: 6.168 MB / 430.1 MB Notification: Performance of matching and sorting (n=165): time 0.02477/0.478, allocations: 9.26 MB / 0.5768 GB, free: 12.67 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.984e-05/0.4781, allocations: 98.42 kB / 0.5768 GB, free: 12.56 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001558/0.4797, allocations: 1.067 MB / 0.5779 GB, free: 11.48 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001274/0.4798, allocations: 57.64 kB / 0.5779 GB, free: 11.42 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006923/0.4805, allocations: 0.8054 MB / 0.5787 GB, free: 10.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005651/0.4811, allocations: 0.6197 MB / 0.5793 GB, free: 9.977 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005844/0.4817, allocations: 351.5 kB / 0.5797 GB, free: 9.629 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.4818, allocations: 305.2 kB / 0.58 GB, free: 9.328 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001537/0.4833, allocations: 0.8472 MB / 0.5808 GB, free: 8.477 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001977/0.4853, allocations: 1.348 MB / 0.5821 GB, free: 6.922 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.01441/0.4998, allocations: 5.191 MB / 0.5872 GB, free: 1.559 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.971e-05/0.4998, allocations: 4 kB / 0.5872 GB, free: 1.555 MB / 446.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.01004/0.5099, allocations: 4.198 MB / 0.5913 GB, free: 13.29 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.297e-05/0.5099, allocations: 16.12 kB / 0.5913 GB, free: 13.27 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.498e-05/0.51, allocations: 16 kB / 0.5913 GB, free: 13.26 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005077/0.515, allocations: 1.602 MB / 0.5929 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001419/0.5165, allocations: 307.5 kB / 0.5932 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03045/0.5469, allocations: 20.89 MB / 0.6136 GB, free: 5.574 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001534/0.5485, allocations: 95.92 kB / 0.6137 GB, free: 5.48 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003213/0.5489, allocations: 79.98 kB / 0.6137 GB, free: 5.402 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.001347/0.5502, allocations: 0.5577 MB / 0.6143 GB, free: 4.836 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004067/0.5506, allocations: 159 kB / 0.6144 GB, free: 4.68 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005789/0.5564, allocations: 2.805 MB / 0.6172 GB, free: 1.77 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.667e-05/0.5565, allocations: 16 kB / 0.6172 GB, free: 1.754 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.394e-05/0.5565, allocations: 4 kB / 0.6172 GB, free: 1.75 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.06e-05/0.5565, allocations: 7.969 kB / 0.6172 GB, free: 1.742 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009529/0.566, allocations: 4.825 MB / 0.6219 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/0.5661, allocations: 4 kB / 0.6219 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001781/0.5679, allocations: 343.5 kB / 0.6222 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001652/0.5695, allocations: 0.4898 MB / 0.6227 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001814/0.5697, allocations: 59.97 kB / 0.6228 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01349/0.5832, allocations: 12.74 MB / 0.6352 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.5833, allocations: 4 kB / 0.6352 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007254/0.5905, allocations: 3.725 MB / 0.6389 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008012/0.5913, allocations: 371.9 kB / 0.6392 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003226/0.5917, allocations: 55.92 kB / 0.6393 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009843/0.5927, allocations: 71.92 kB / 0.6393 GB, free: 9.707 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003364/0.593, allocations: 129.1 kB / 0.6395 GB, free: 9.582 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001204/0.5932, allocations: 55.92 kB / 0.6395 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001143/0.5943, allocations: 0.71 MB / 0.6402 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5943, allocations: 0 / 0.6402 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002104/0.5964, allocations: 0.5976 MB / 0.6408 GB, free: 8.215 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.007504/0.6039, allocations: 4.359 MB / 0.6451 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006523/0.6105, allocations: 3.511 MB / 0.6485 GB, free: 116 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.6105, allocations: 0 / 0.6485 GB, free: 116 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003191/0.6137, allocations: 1.889 MB / 0.6503 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001695/0.6154, allocations: 345.4 kB / 0.6507 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03713/0.6526, allocations: 20.02 MB / 0.6702 GB, free: 8.98 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001736/0.6543, allocations: 1.641 MB / 0.6718 GB, free: 7.305 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001208/0.6555, allocations: 437.3 kB / 0.6722 GB, free: 6.871 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/0.6566, allocations: 0.7023 MB / 0.6729 GB, free: 6.168 MB / 0.5294 GB Notification: Performance of SimCode: time 6.41e-07/0.6567, allocations: 0 / 0.6729 GB, free: 6.168 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1208/0.7774, allocations: 47.81 MB / 0.7196 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.64/16.42, allocations: 6.484 kB / 0.7196 GB, free: 6.617 MB / 0.5762 GB (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.sim & python3 -m fmpy simulate --output-file PowerSystems_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_PowerSystems_Examples_Wind_WindTurbine_PSGI.fmu > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)