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.001369/0.001369, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001642/0.001642, allocations: 209.7 kB / 23.73 MB, free: 4.387 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.47/1.47, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.1927/0.1927, allocations: 38.55 MB / 352.5 MB, free: 12.29 MB / 286.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="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"}) [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.001955/0.001955, allocations: 63.89 kB / 492.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3709/0.3728, allocations: 62.48 MB / 0.5419 GB, free: 232 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01455/0.3874, allocations: 10.23 MB / 0.5519 GB, free: 8.473 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01195/0.3993, allocations: 6.485 MB / 0.5583 GB, free: 3.477 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001547/0.4009, allocations: 60.84 kB / 0.5583 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02681/0.4277, allocations: 14.25 MB / 0.5722 GB, free: 5.168 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00331/0.431, allocations: 1.116 MB / 0.5733 GB, free: 4.047 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002023/0.433, allocations: 0.6745 MB / 0.574 GB, free: 3.371 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006717/0.4397, allocations: 4.066 MB / 0.578 GB, free: 15.29 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001624/0.4414, allocations: 0.8358 MB / 0.5788 GB, free: 14.43 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002208/0.4436, allocations: 1.113 MB / 0.5799 GB, free: 13.31 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002561/0.4461, allocations: 1.472 MB / 0.5813 GB, free: 11.84 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003695/0.4465, allocations: 144 kB / 0.5814 GB, free: 11.7 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001443/0.4479, allocations: 0.5422 MB / 0.582 GB, free: 11.15 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009918/0.4489, allocations: 0.9038 MB / 0.5828 GB, free: 10.25 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001119/0.45, allocations: 0.7933 MB / 0.5836 GB, free: 9.449 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003425/0.4535, allocations: 2.534 MB / 0.5861 GB, free: 6.906 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.4535, allocations: 0 / 0.5861 GB, free: 6.906 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4535, allocations: 0 / 0.5861 GB, free: 6.906 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.633e-05/0.4535, allocations: 0 / 0.5861 GB, free: 6.906 MB / 430.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.004645/0.4582, allocations: 2.143 MB / 0.5882 GB, free: 4.719 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.4582, allocations: 11.98 kB / 0.5882 GB, free: 4.707 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002869/0.4585, allocations: 224.2 kB / 0.5884 GB, free: 4.477 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001951/0.4604, allocations: 379.2 kB / 0.5888 GB, free: 4.105 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003016/0.4635, allocations: 1.189 MB / 0.5899 GB, free: 2.875 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.697e-05/0.4636, allocations: 106.6 kB / 0.59 GB, free: 2.77 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005877/0.4641, allocations: 231.8 kB / 0.5903 GB, free: 2.543 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003742/0.4679, allocations: 2.149 MB / 0.5924 GB, free: 292 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.28e-05/0.4679, allocations: 11.95 kB / 0.5924 GB, free: 280 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00015/0.4681, allocations: 51.98 kB / 0.5924 GB, free: 228 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006783/0.4688, allocations: 186.6 kB / 0.5926 GB, free: 40 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003212/0.472, allocations: 1.748 MB / 0.5943 GB, free: 14.29 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.0128/0.4848, allocations: 7.653 MB / 0.6018 GB, free: 6.332 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002475/0.4873, allocations: 1.284 MB / 0.603 GB, free: 5.035 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00137/0.4886, allocations: 0.7311 MB / 0.6037 GB, free: 4.301 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.221e-05/0.4887, allocations: 17 kB / 0.6038 GB, free: 4.285 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.899e-05/0.4887, allocations: 47.56 kB / 0.6038 GB, free: 4.23 MB / 446.1 MB Notification: Performance of pre-optimization done (n=122): time 5.06e-06/0.4887, allocations: 3.984 kB / 0.6038 GB, free: 4.227 MB / 446.1 MB Notification: Performance of matching and sorting (n=150): time 0.01991/0.5087, allocations: 7.148 MB / 0.6108 GB, free: 13.01 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.545e-05/0.5087, allocations: 94.42 kB / 0.6109 GB, free: 12.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/0.5102, allocations: 1.064 MB / 0.6119 GB, free: 11.82 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001795/0.5104, allocations: 61.64 kB / 0.612 GB, free: 11.76 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006817/0.5111, allocations: 0.7817 MB / 0.6127 GB, free: 10.97 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006078/0.5117, allocations: 0.5578 MB / 0.6133 GB, free: 10.41 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005282/0.5122, allocations: 331.5 kB / 0.6136 GB, free: 10.08 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.5124, allocations: 305.1 kB / 0.6139 GB, free: 9.777 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/0.5138, allocations: 0.773 MB / 0.6147 GB, free: 9.004 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001805/0.5156, allocations: 1.251 MB / 0.6159 GB, free: 7.559 MB / 462.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.01722/0.5328, allocations: 5.606 MB / 0.6213 GB, free: 1.793 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.297e-05/0.5329, allocations: 4 kB / 0.6214 GB, free: 1.789 MB / 462.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.01033/0.5432, allocations: 3.785 MB / 0.625 GB, free: 13.98 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.394e-05/0.5432, allocations: 12.12 kB / 0.6251 GB, free: 13.96 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.824e-05/0.5433, allocations: 16 kB / 0.6251 GB, free: 13.95 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006088/0.5493, allocations: 1.716 MB / 0.6268 GB, free: 12.22 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001139/0.5505, allocations: 267.5 kB / 0.627 GB, free: 11.96 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03037/0.5808, allocations: 17.84 MB / 0.6444 GB, free: 9.664 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001423/0.5823, allocations: 79.94 kB / 0.6445 GB, free: 9.586 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002926/0.5826, allocations: 83.92 kB / 0.6446 GB, free: 9.504 MB / 494.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.001145/0.5837, allocations: 0.5328 MB / 0.6451 GB, free: 8.961 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004404/0.5841, allocations: 155 kB / 0.6453 GB, free: 8.809 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005954/0.5901, allocations: 2.25 MB / 0.6475 GB, free: 6.531 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.022e-05/0.5901, allocations: 12 kB / 0.6475 GB, free: 6.52 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.059e-05/0.5901, allocations: 7.938 kB / 0.6475 GB, free: 6.512 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.789e-05/0.5902, allocations: 7.969 kB / 0.6475 GB, free: 6.504 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/0.6007, allocations: 3.966 MB / 0.6514 GB, free: 2.438 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.818e-06/0.6008, allocations: 0 / 0.6514 GB, free: 2.438 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001609/0.6024, allocations: 303.6 kB / 0.6516 GB, free: 2.141 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002635/0.605, allocations: 0.5546 MB / 0.6522 GB, free: 1.57 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001711/0.6052, allocations: 47.97 kB / 0.6522 GB, free: 1.523 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01149/0.6167, allocations: 9.575 MB / 0.6616 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.6167, allocations: 7.969 kB / 0.6616 GB, free: 7.375 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006879/0.6236, allocations: 3.062 MB / 0.6646 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009962/0.6245, allocations: 278.8 kB / 0.6648 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003266/0.6249, allocations: 51.92 kB / 0.6649 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009707/0.6258, allocations: 59.94 kB / 0.665 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000313/0.6262, allocations: 125 kB / 0.6651 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/0.6263, allocations: 47.97 kB / 0.6651 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001193/0.6275, allocations: 0.6892 MB / 0.6658 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9.1e-08/0.6275, allocations: 0 / 0.6658 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002245/0.6297, allocations: 0.5663 MB / 0.6663 GB, free: 2.43 MB / 0.4981 GB 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.007279/0.637, allocations: 3.697 MB / 0.67 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006363/0.6434, allocations: 2.992 MB / 0.6729 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.767e-06/0.6434, allocations: 0 / 0.6729 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003143/0.6465, allocations: 1.536 MB / 0.6744 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002086/0.6486, allocations: 335 kB / 0.6747 GB, free: 9.688 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04446/0.693, allocations: 18.7 MB / 0.693 GB, free: 6.379 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001918/0.695, allocations: 1.001 MB / 0.6939 GB, free: 5.348 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001479/0.6964, allocations: 408.5 kB / 0.6943 GB, free: 4.941 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/0.6977, allocations: 0.6555 MB / 0.695 GB, free: 4.285 MB / 0.5294 GB Notification: Performance of SimCode: time 1.302e-06/0.6977, allocations: 0 / 0.695 GB, free: 4.285 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3616/1.059, allocations: 47.1 MB / 0.741 GB, free: 170.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.02/16.08, allocations: 2.969 kB / 0.741 GB, free: 170.5 MB / 0.5606 GB " [Timeout remaining time 644] (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.048800143878907] Failed to read output from testmodel.py, exit status != 0: 16.238808201625943 16.258166079 15.800825586 Calling exit ...