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.001118/0.001118, allocations: 111.8 kB / 17.06 MB, free: 5.977 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.001184/0.001184, allocations: 194.9 kB / 18 MB, free: 5.062 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.381/1.381, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1852/0.1852, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 63.91 kB / 457.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3216, allocations: 58.05 MB / 0.5036 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01016/0.3318, allocations: 11.03 MB / 0.5144 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01145/0.3432, allocations: 7.085 MB / 0.5213 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001254/0.3445, allocations: 49.25 kB / 0.5213 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02415/0.3688, allocations: 12.87 MB / 0.5339 GB, free: 6.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003378/0.3722, allocations: 1.119 MB / 0.535 GB, free: 5.285 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002156/0.3743, allocations: 0.6848 MB / 0.5357 GB, free: 4.762 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005988/0.3803, allocations: 4.019 MB / 0.5396 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001636/0.382, allocations: 0.992 MB / 0.5406 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002125/0.3841, allocations: 1.128 MB / 0.5417 GB, free: 1.449 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002554/0.3867, allocations: 1.443 MB / 0.5431 GB, free: 260 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004815/0.3872, allocations: 152 kB / 0.5432 GB, free: 108 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001475/0.3887, allocations: 0.5149 MB / 0.5437 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001131/0.3898, allocations: 0.9 MB / 0.5446 GB, free: 14.69 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00172/0.3916, allocations: 0.9912 MB / 0.5456 GB, free: 13.69 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003388/0.395, allocations: 2.551 MB / 0.5481 GB, free: 11.13 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.395, allocations: 0 / 0.5481 GB, free: 11.13 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.395, allocations: 0 / 0.5481 GB, free: 11.13 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.963e-05/0.3951, allocations: 4 kB / 0.5481 GB, free: 11.13 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.005736/0.4008, allocations: 2.228 MB / 0.5502 GB, free: 8.84 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.4009, allocations: 11.89 kB / 0.5502 GB, free: 8.828 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004453/0.4013, allocations: 240.4 kB / 0.5505 GB, free: 8.582 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002039/0.4034, allocations: 338 kB / 0.5508 GB, free: 8.25 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003377/0.4068, allocations: 1.326 MB / 0.5521 GB, free: 6.879 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.4069, allocations: 106.7 kB / 0.5522 GB, free: 6.773 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006965/0.4076, allocations: 239.7 kB / 0.5524 GB, free: 6.539 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004203/0.4118, allocations: 2.188 MB / 0.5546 GB, free: 4.246 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.159e-05/0.4119, allocations: 4 kB / 0.5546 GB, free: 4.242 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001963/0.4121, allocations: 59.98 kB / 0.5546 GB, free: 4.184 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006985/0.4128, allocations: 190.8 kB / 0.5548 GB, free: 3.996 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003564/0.4164, allocations: 1.838 MB / 0.5566 GB, free: 2.152 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.01356/0.43, allocations: 8.516 MB / 0.5649 GB, free: 9.219 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002792/0.4328, allocations: 1.905 MB / 0.5668 GB, free: 7.184 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001445/0.4343, allocations: 0.8002 MB / 0.5676 GB, free: 6.383 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.52e-05/0.4344, allocations: 21.38 kB / 0.5676 GB, free: 6.363 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/0.4344, allocations: 43.88 kB / 0.5676 GB, free: 6.312 MB / 430.1 MB Notification: Performance of pre-optimization done (n=130): time 3.807e-06/0.4344, allocations: 0 / 0.5676 GB, free: 6.312 MB / 430.1 MB Notification: Performance of matching and sorting (n=165): time 0.02498/0.4594, allocations: 9.208 MB / 0.5766 GB, free: 12.86 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.405e-05/0.4595, allocations: 94.42 kB / 0.5767 GB, free: 12.75 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00172/0.4613, allocations: 1.067 MB / 0.5777 GB, free: 11.68 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002228/0.4615, allocations: 53.64 kB / 0.5778 GB, free: 11.62 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000729/0.4622, allocations: 0.7953 MB / 0.5786 GB, free: 10.81 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000709/0.463, allocations: 0.5776 MB / 0.5791 GB, free: 10.22 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008588/0.4638, allocations: 351.3 kB / 0.5795 GB, free: 9.875 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.464, allocations: 305.2 kB / 0.5798 GB, free: 9.574 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001617/0.4656, allocations: 0.8511 MB / 0.5806 GB, free: 8.719 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00195/0.4676, allocations: 1.348 MB / 0.5819 GB, free: 7.164 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.01445/0.482, allocations: 5.187 MB / 0.587 GB, free: 1.805 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.217e-05/0.4821, allocations: 4 kB / 0.587 GB, free: 1.801 MB / 446.1 MB Notification: Performance of matching and sorting (n=255) (initialization): time 0.01045/0.4925, allocations: 4.197 MB / 0.5911 GB, free: 13.54 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.546e-05/0.4926, allocations: 16.03 kB / 0.5911 GB, free: 13.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.9e-05/0.4927, allocations: 12 kB / 0.5911 GB, free: 13.51 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005275/0.498, allocations: 1.606 MB / 0.5927 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001581/0.4996, allocations: 311.5 kB / 0.593 GB, free: 11.58 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03115/0.5308, allocations: 20.88 MB / 0.6134 GB, free: 5.832 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001689/0.5325, allocations: 95.92 kB / 0.6135 GB, free: 5.738 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003949/0.5329, allocations: 84.05 kB / 0.6135 GB, free: 5.656 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.001372/0.5343, allocations: 0.5459 MB / 0.6141 GB, free: 5.102 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004752/0.5348, allocations: 154.1 kB / 0.6142 GB, free: 4.949 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006288/0.5411, allocations: 2.801 MB / 0.6169 GB, free: 2.043 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.219e-05/0.5412, allocations: 20 kB / 0.617 GB, free: 2.023 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-05/0.5412, allocations: 4 kB / 0.617 GB, free: 2.02 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-05/0.5412, allocations: 11.95 kB / 0.617 GB, free: 2.008 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/0.5526, allocations: 4.825 MB / 0.6217 GB, free: 13 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.34e-05/0.5526, allocations: 0 / 0.6217 GB, free: 13 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001811/0.5545, allocations: 339.6 kB / 0.622 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001628/0.5561, allocations: 0.4978 MB / 0.6225 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002249/0.5564, allocations: 59.95 kB / 0.6226 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01328/0.5696, allocations: 12.74 MB / 0.635 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/0.5697, allocations: 3.938 kB / 0.635 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008105/0.5778, allocations: 3.72 MB / 0.6386 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00123/0.5791, allocations: 367 kB / 0.639 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004294/0.5795, allocations: 47.98 kB / 0.639 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/0.5808, allocations: 71.92 kB / 0.6391 GB, free: 9.992 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004653/0.5813, allocations: 129.1 kB / 0.6392 GB, free: 9.867 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001613/0.5815, allocations: 47.98 kB / 0.6393 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001489/0.583, allocations: 0.7178 MB / 0.64 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.583, allocations: 0 / 0.64 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002544/0.5855, allocations: 0.5898 MB / 0.6405 GB, free: 8.508 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.008068/0.5936, allocations: 4.359 MB / 0.6448 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007241/0.6009, allocations: 3.479 MB / 0.6482 GB, free: 448 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/0.601, allocations: 0 / 0.6482 GB, free: 448 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003544/0.6045, allocations: 1.901 MB / 0.6501 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002362/0.6069, allocations: 343.7 kB / 0.6504 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04252/0.6495, allocations: 19.94 MB / 0.6699 GB, free: 9.371 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002359/0.6518, allocations: 1.637 MB / 0.6715 GB, free: 7.699 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001754/0.6536, allocations: 437.3 kB / 0.6719 GB, free: 7.266 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001431/0.6551, allocations: 0.6984 MB / 0.6726 GB, free: 6.566 MB / 0.5294 GB Notification: Performance of SimCode: time 1.002e-06/0.6551, allocations: 3.938 kB / 0.6726 GB, free: 6.562 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1164/0.7715, allocations: 48.92 MB / 0.7203 GB, free: 5.918 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.5/16.27, allocations: 14.97 kB / 0.7204 GB, free: 5.906 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGI_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGI.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)