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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 118.4 kB / 18.49 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002407/0.002407, allocations: 211.1 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.53/1.53, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1875/0.1875, allocations: 38.5 MB / 349.4 MB, free: 2.594 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGR,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGR,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 63.91 kB / 487.8 MB, free: 22.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1233, allocations: 62.42 MB / 0.5374 GB, free: 7.559 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01595/0.1393, allocations: 11.08 MB / 0.5482 GB, free: 12.43 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01255/0.1518, allocations: 7.156 MB / 0.5552 GB, free: 5.258 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001355/0.1532, allocations: 63.44 kB / 0.5552 GB, free: 5.195 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02197/0.1752, allocations: 13 MB / 0.5679 GB, free: 8.176 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003117/0.1783, allocations: 1.116 MB / 0.569 GB, free: 7.055 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001876/0.1802, allocations: 0.655 MB / 0.5697 GB, free: 6.398 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006563/0.1867, allocations: 3.922 MB / 0.5735 GB, free: 2.465 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001372/0.1881, allocations: 0.7934 MB / 0.5743 GB, free: 1.648 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001924/0.19, allocations: 1.109 MB / 0.5753 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002498/0.1925, allocations: 1.519 MB / 0.5768 GB, free: 15.01 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003129/0.1928, allocations: 144 kB / 0.577 GB, free: 14.87 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001238/0.1941, allocations: 0.5461 MB / 0.5775 GB, free: 14.32 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001017/0.1951, allocations: 0.9038 MB / 0.5784 GB, free: 13.42 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001311/0.1964, allocations: 0.9523 MB / 0.5793 GB, free: 12.46 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003704/0.2001, allocations: 2.518 MB / 0.5818 GB, free: 9.934 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.2001, allocations: 0 / 0.5818 GB, free: 9.934 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2001, allocations: 0 / 0.5818 GB, free: 9.934 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.63e-05/0.2002, allocations: 0 / 0.5818 GB, free: 9.934 MB / 446.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.00488/0.205, allocations: 2.218 MB / 0.5839 GB, free: 7.652 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.2051, allocations: 8.031 kB / 0.5839 GB, free: 7.645 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.622e-05/0.2051, allocations: 38.86 kB / 0.584 GB, free: 7.605 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002985/0.2054, allocations: 224.2 kB / 0.5842 GB, free: 7.375 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002191/0.2076, allocations: 387 kB / 0.5846 GB, free: 6.996 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003118/0.2107, allocations: 1.288 MB / 0.5858 GB, free: 5.664 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.917e-05/0.2108, allocations: 102.7 kB / 0.5859 GB, free: 5.562 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006395/0.2115, allocations: 223.9 kB / 0.5861 GB, free: 5.344 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003773/0.2153, allocations: 2.157 MB / 0.5882 GB, free: 3.078 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.751e-05/0.2153, allocations: 11.95 kB / 0.5883 GB, free: 3.066 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001546/0.2155, allocations: 59.92 kB / 0.5883 GB, free: 3.008 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007118/0.2162, allocations: 178.7 kB / 0.5885 GB, free: 2.832 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0033/0.2195, allocations: 1.764 MB / 0.5902 GB, free: 1.062 MB / 446.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.2699/0.4894, allocations: 8.577 MB / 0.5986 GB, free: 47.16 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002696/0.4921, allocations: 1.75 MB / 0.6003 GB, free: 46.12 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001361/0.4934, allocations: 0.7217 MB / 0.601 GB, free: 45.88 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.392e-05/0.4935, allocations: 18.44 kB / 0.601 GB, free: 45.88 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.4936, allocations: 47.12 kB / 0.6011 GB, free: 45.83 MB / 446.1 MB Notification: Performance of pre-optimization done (n=122): time 3.828e-06/0.4936, allocations: 2.031 kB / 0.6011 GB, free: 45.83 MB / 446.1 MB Notification: Performance of matching and sorting (n=150): time 0.01907/0.5126, allocations: 7.602 MB / 0.6085 GB, free: 42.62 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.5127, allocations: 94.44 kB / 0.6086 GB, free: 42.53 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00131/0.514, allocations: 1.04 MB / 0.6096 GB, free: 42.13 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.966e-05/0.5141, allocations: 55.61 kB / 0.6096 GB, free: 42.07 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004163/0.5145, allocations: 0.7811 MB / 0.6104 GB, free: 41.54 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004301/0.5149, allocations: 0.5644 MB / 0.6109 GB, free: 41.16 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004719/0.5154, allocations: 331.4 kB / 0.6113 GB, free: 41.01 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.189e-05/0.5154, allocations: 303.3 kB / 0.6116 GB, free: 40.71 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001225/0.5167, allocations: 0.7761 MB / 0.6123 GB, free: 40.47 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001384/0.518, allocations: 1.247 MB / 0.6135 GB, free: 39.65 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.01487/0.5329, allocations: 5.686 MB / 0.6191 GB, free: 37.05 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.819e-05/0.5329, allocations: 7.5 kB / 0.6191 GB, free: 37.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.008267/0.5412, allocations: 3.851 MB / 0.6229 GB, free: 34.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.844e-05/0.5412, allocations: 12 kB / 0.6229 GB, free: 34.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.72e-05/0.5413, allocations: 20.83 kB / 0.6229 GB, free: 34.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00519/0.5464, allocations: 1.73 MB / 0.6246 GB, free: 32.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/0.5475, allocations: 263.6 kB / 0.6248 GB, free: 32.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0219/0.5694, allocations: 18.52 MB / 0.6429 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001665/0.5711, allocations: 79.94 kB / 0.643 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002951/0.5714, allocations: 76.73 kB / 0.6431 GB, free: 13.4 MB / 446.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.generator.psi_rq[1] = 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: 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 (130): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,11,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,49), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001114/0.5725, allocations: 0.5327 MB / 0.6436 GB, free: 12.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003783/0.5729, allocations: 156.8 kB / 0.6437 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004793/0.5777, allocations: 2.393 MB / 0.6461 GB, free: 10.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.5777, allocations: 16 kB / 0.6461 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.5777, allocations: 4 kB / 0.6461 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-05/0.5777, allocations: 7.969 kB / 0.6461 GB, free: 10.22 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008198/0.5859, allocations: 4.316 MB / 0.6503 GB, free: 5.797 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.268e-05/0.5859, allocations: 4 kB / 0.6503 GB, free: 5.793 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001678/0.5876, allocations: 307.9 kB / 0.6506 GB, free: 5.492 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00257/0.5902, allocations: 0.5499 MB / 0.6511 GB, free: 4.93 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002751/0.5904, allocations: 51.95 kB / 0.6512 GB, free: 4.879 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01051/0.6009, allocations: 10.14 MB / 0.6611 GB, free: 10.05 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.04e-05/0.6009, allocations: 7.938 kB / 0.6611 GB, free: 10.04 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008095/0.609, allocations: 3.228 MB / 0.6643 GB, free: 6.707 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001288/0.6103, allocations: 348 kB / 0.6646 GB, free: 6.348 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005893/0.6109, allocations: 51.94 kB / 0.6646 GB, free: 6.297 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001345/0.6123, allocations: 59.94 kB / 0.6647 GB, free: 6.238 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004508/0.6127, allocations: 129 kB / 0.6648 GB, free: 6.113 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001275/0.6128, allocations: 43.98 kB / 0.6649 GB, free: 6.07 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001515/0.6144, allocations: 0.6931 MB / 0.6655 GB, free: 5.371 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6144, allocations: 0 / 0.6655 GB, free: 5.371 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003206/0.6176, allocations: 0.5702 MB / 0.6661 GB, free: 4.801 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 23 (inertia.w,generator.phi_el,generator.i_s[3],generator.psi_s[1],generator.psi_s[2],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 (119): * Single equations (assignments): 113 * 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): 4 systems {(2,9,100.0%), (1,1,100.0%), (1,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008145/0.6257, allocations: 3.832 MB / 0.6698 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00696/0.6327, allocations: 3 MB / 0.6728 GB, free: 13.81 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.6327, allocations: 0.5 kB / 0.6728 GB, free: 13.81 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003119/0.6358, allocations: 1.528 MB / 0.6743 GB, free: 12.22 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002258/0.6381, allocations: 329.7 kB / 0.6746 GB, free: 11.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04075/0.6788, allocations: 18.83 MB / 0.693 GB, free: 8.449 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002239/0.681, allocations: 1.585 MB / 0.6945 GB, free: 6.836 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00149/0.6825, allocations: 412.5 kB / 0.6949 GB, free: 6.426 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001294/0.6838, allocations: 0.6555 MB / 0.6955 GB, free: 5.77 MB / 494.1 MB Notification: Performance of SimCode: time 2.234e-06/0.6838, allocations: 0 / 0.6955 GB, free: 5.77 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1051/0.7889, allocations: 47.03 MB / 0.7415 GB, free: 6.996 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.88/16.67, allocations: 11.44 kB / 0.7415 GB, free: 6.988 MB / 0.5294 GB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR_fmu --startTime=0 --stopTime=100 --stepSize=0.04 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_PSGR.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.750664427003358] Failed to read output from testmodel.py, exit status != 0: 16.852955068054143 16.874197178 16.67001035 Calling exit ...