Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.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_PSGR,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGR,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR",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.001196/0.001196, allocations: 106.6 kB / 16.92 MB, free: 6.145 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.00119/0.00119, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.372/1.372, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1825/0.1825, allocations: 38.04 MB / 329.7 MB, free: 8.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001473, allocations: 66.75 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1028, allocations: 58.06 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01317/0.116, allocations: 10.94 MB / 467.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01107/0.1271, allocations: 7.086 MB / 475 MB, free: 5.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/0.1282, allocations: 51.69 kB / 475 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02107/0.1493, allocations: 12.9 MB / 487.9 MB, free: 8.891 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003426/0.1527, allocations: 1.101 MB / 489 MB, free: 7.785 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002071/0.1548, allocations: 0.6627 MB / 489.7 MB, free: 7.121 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005925/0.1607, allocations: 3.895 MB / 493.6 MB, free: 3.211 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001842/0.1626, allocations: 1 MB / 494.6 MB, free: 2.191 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002159/0.1648, allocations: 1.082 MB / 495.7 MB, free: 1.105 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002332/0.1671, allocations: 1.398 MB / 497.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005196/0.1677, allocations: 144 kB / 497.2 MB, free: 15.56 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001563/0.1693, allocations: 0.511 MB / 497.7 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001415/0.1707, allocations: 0.8806 MB / 498.6 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001799/0.1725, allocations: 0.9562 MB / 499.6 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003401/0.1759, allocations: 2.465 MB / 0.4903 GB, free: 10.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1759, allocations: 0 / 0.4903 GB, free: 10.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.176, allocations: 0 / 0.4903 GB, free: 10.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001081/0.1761, allocations: 4 kB / 0.4903 GB, free: 10.73 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: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.004792/0.1809, allocations: 2.158 MB / 0.4924 GB, free: 8.512 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/0.1809, allocations: 11.89 kB / 0.4924 GB, free: 8.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002774/0.1812, allocations: 228.2 kB / 0.4926 GB, free: 8.266 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001848/0.1831, allocations: 322.2 kB / 0.4929 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002304/0.1854, allocations: 1.229 MB / 0.4941 GB, free: 6.672 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.215e-05/0.1855, allocations: 102.6 kB / 0.4942 GB, free: 6.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000529/0.186, allocations: 235.7 kB / 0.4944 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003303/0.1893, allocations: 2.153 MB / 0.4965 GB, free: 4.078 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.141e-05/0.1894, allocations: 7.938 kB / 0.4966 GB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001517/0.1896, allocations: 59.92 kB / 0.4966 GB, free: 4.012 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006789/0.1902, allocations: 182.7 kB / 0.4968 GB, free: 3.832 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003513/0.1938, allocations: 1.756 MB / 0.4985 GB, free: 2.07 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.1955/0.3892, allocations: 8.614 MB / 0.5069 GB, free: 52.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002274/0.3915, allocations: 1.817 MB / 0.5087 GB, free: 51.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001369/0.3929, allocations: 0.7804 MB / 0.5094 GB, free: 51.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.972e-05/0.393, allocations: 18.25 kB / 0.5095 GB, free: 51.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.3931, allocations: 50.72 kB / 0.5095 GB, free: 51.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.577e-06/0.3931, allocations: 0 / 0.5095 GB, free: 51.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.0105/0.4036, allocations: 5.452 MB / 0.5148 GB, free: 48.49 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/0.4036, allocations: 93 kB / 0.5149 GB, free: 48.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001266/0.4049, allocations: 1.04 MB / 0.5159 GB, free: 47.99 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.85e-05/0.405, allocations: 47.14 kB / 0.516 GB, free: 47.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004128/0.4054, allocations: 0.7623 MB / 0.5167 GB, free: 47.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002978/0.4057, allocations: 0.4962 MB / 0.5172 GB, free: 46.96 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004302/0.4062, allocations: 317.6 kB / 0.5175 GB, free: 46.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.8e-05/0.4062, allocations: 302.2 kB / 0.5178 GB, free: 46.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.4073, allocations: 0.7164 MB / 0.5185 GB, free: 46.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/0.4087, allocations: 1.186 MB / 0.5197 GB, free: 45.51 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.01169/0.4204, allocations: 5.004 MB / 0.5245 GB, free: 43.47 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.898e-05/0.4205, allocations: 4.125 kB / 0.5246 GB, free: 43.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006708/0.4272, allocations: 3.595 MB / 0.5281 GB, free: 41.42 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.4272, allocations: 11.78 kB / 0.5281 GB, free: 41.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.139e-05/0.4272, allocations: 18.11 kB / 0.5281 GB, free: 41.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003462/0.4307, allocations: 1.27 MB / 0.5293 GB, free: 40.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.4319, allocations: 316.3 kB / 0.5296 GB, free: 40.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01616/0.4481, allocations: 16.02 MB / 0.5453 GB, free: 24.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001545/0.4497, allocations: 71.89 kB / 0.5454 GB, free: 24.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/0.4499, allocations: 87.86 kB / 0.5454 GB, free: 24.02 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 5.051577893736758e-05 * $DER.generator.i_s[3] = 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: 63 * 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 (155): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,23), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0007887/0.4507, allocations: 0.5123 MB / 0.5459 GB, free: 23.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002127/0.4509, allocations: 134.3 kB / 0.5461 GB, free: 23.36 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002708/0.4536, allocations: 2.15 MB / 0.5482 GB, free: 21.11 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.4536, allocations: 12 kB / 0.5482 GB, free: 21.1 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.4536, allocations: 11.94 kB / 0.5482 GB, free: 21.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/0.4537, allocations: 3.984 kB / 0.5482 GB, free: 21.08 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005262/0.4589, allocations: 3.851 MB / 0.5519 GB, free: 17.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.459, allocations: 4 kB / 0.552 GB, free: 17.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001525/0.4605, allocations: 319.9 kB / 0.5523 GB, free: 16.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005153/0.461, allocations: 205.1 kB / 0.5525 GB, free: 16.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001051/0.4611, allocations: 47.97 kB / 0.5525 GB, free: 16.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004097/0.4652, allocations: 7.932 MB / 0.5602 GB, free: 7.898 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.4653, allocations: 7.969 kB / 0.5603 GB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003805/0.4691, allocations: 2.822 MB / 0.563 GB, free: 4.938 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006072/0.4697, allocations: 327.3 kB / 0.5633 GB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000198/0.4699, allocations: 52.16 kB / 0.5634 GB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008003/0.4707, allocations: 55.95 kB / 0.5634 GB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000249/0.471, allocations: 97.11 kB / 0.5635 GB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.721e-05/0.4711, allocations: 51.86 kB / 0.5636 GB, free: 4.348 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007801/0.4719, allocations: 0.6892 MB / 0.5642 GB, free: 3.652 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4719, allocations: 0 / 0.5642 GB, free: 3.652 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001926/0.4738, allocations: 0.5037 MB / 0.5647 GB, free: 3.152 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 25 (inertia.phi,inertia.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],meterDC.pav,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]) * 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 (126): * Single equations (assignments): 120 * 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.003975/0.4778, allocations: 3.448 MB / 0.5681 GB, free: 15.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00641/0.4842, allocations: 3.699 MB / 0.5717 GB, free: 11.83 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.4842, allocations: 1.75 kB / 0.5717 GB, free: 11.83 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002089/0.4863, allocations: 1.363 MB / 0.573 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001947/0.4883, allocations: 327.5 kB / 0.5734 GB, free: 10.1 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03329/0.5216, allocations: 18.89 MB / 0.5918 GB, free: 6.301 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001553/0.5232, allocations: 1.552 MB / 0.5933 GB, free: 4.719 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001498/0.5247, allocations: 444.1 kB / 0.5937 GB, free: 4.281 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001021/0.5258, allocations: 0.6633 MB / 0.5944 GB, free: 3.617 MB / 414.1 MB Notification: Performance of SimCode: time 7.32e-07/0.5258, allocations: 0 / 0.5944 GB, free: 3.617 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09674/0.6225, allocations: 41.37 MB / 0.6348 GB, free: 10.55 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/13.15, allocations: 7.875 kB / 0.6348 GB, free: 10.54 MB / 462.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR_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_PSGR.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)