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.001343/0.001343, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001591/0.001591, allocations: 214.1 kB / 24.52 MB, free: 3.941 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.468/1.468, allocations: 230.6 MB / 258.3 MB, free: 7.773 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.1868/0.1868, allocations: 38.55 MB / 353.2 MB, free: 12.31 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="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.00221/0.00221, allocations: 63.91 kB / 493.3 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3377, allocations: 62.47 MB / 0.5427 GB, free: 244 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.0147/0.3523, allocations: 10.22 MB / 0.5527 GB, free: 8.477 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01195/0.3643, allocations: 6.469 MB / 0.559 GB, free: 3.488 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001382/0.3657, allocations: 64.47 kB / 0.5591 GB, free: 3.453 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02866/0.3943, allocations: 14.39 MB / 0.5731 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003908/0.3982, allocations: 1.124 MB / 0.5742 GB, free: 3.93 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002329/0.4006, allocations: 0.6667 MB / 0.5749 GB, free: 3.262 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007337/0.4079, allocations: 4.086 MB / 0.5789 GB, free: 15.16 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001637/0.4095, allocations: 0.8436 MB / 0.5797 GB, free: 14.29 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002036/0.4116, allocations: 1.125 MB / 0.5808 GB, free: 13.16 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002746/0.4143, allocations: 1.519 MB / 0.5823 GB, free: 11.64 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005161/0.4148, allocations: 144 kB / 0.5824 GB, free: 11.5 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001614/0.4165, allocations: 0.5577 MB / 0.5829 GB, free: 10.94 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001246/0.4177, allocations: 0.9038 MB / 0.5838 GB, free: 10.04 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001622/0.4193, allocations: 0.7933 MB / 0.5846 GB, free: 9.238 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003704/0.423, allocations: 2.534 MB / 0.5871 GB, free: 6.695 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.423, allocations: 0 / 0.5871 GB, free: 6.695 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.423, allocations: 0 / 0.5871 GB, free: 6.695 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.242e-05/0.4231, allocations: 0 / 0.5871 GB, free: 6.695 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.004916/0.428, allocations: 2.143 MB / 0.5892 GB, free: 4.508 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.4281, allocations: 11.98 kB / 0.5892 GB, free: 4.496 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.051e-05/0.4281, allocations: 42.86 kB / 0.5892 GB, free: 4.453 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002973/0.4284, allocations: 232.2 kB / 0.5894 GB, free: 4.215 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001976/0.4304, allocations: 375 kB / 0.5898 GB, free: 3.848 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002678/0.4331, allocations: 1.189 MB / 0.591 GB, free: 2.617 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.998e-05/0.4332, allocations: 102.6 kB / 0.5911 GB, free: 2.516 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005931/0.4338, allocations: 231.9 kB / 0.5913 GB, free: 2.289 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003464/0.4372, allocations: 2.149 MB / 0.5934 GB, free: 32 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.4e-05/0.4373, allocations: 15.88 kB / 0.5934 GB, free: 16 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001659/0.4375, allocations: 55.98 kB / 0.5934 GB, free: 15.96 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006297/0.4381, allocations: 186.7 kB / 0.5936 GB, free: 15.78 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003116/0.4412, allocations: 1.752 MB / 0.5953 GB, free: 14.02 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.01213/0.4533, allocations: 7.657 MB / 0.6028 GB, free: 6.062 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002451/0.4558, allocations: 1.284 MB / 0.6041 GB, free: 4.766 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001357/0.4571, allocations: 0.7196 MB / 0.6048 GB, free: 4.039 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.299e-05/0.4572, allocations: 17 kB / 0.6048 GB, free: 4.023 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.565e-05/0.4573, allocations: 51.44 kB / 0.6048 GB, free: 3.965 MB / 446.1 MB Notification: Performance of pre-optimization done (n=122): time 3.706e-06/0.4573, allocations: 4 kB / 0.6048 GB, free: 3.961 MB / 446.1 MB Notification: Performance of matching and sorting (n=150): time 0.02121/0.4785, allocations: 7.14 MB / 0.6118 GB, free: 12.76 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.598e-05/0.4786, allocations: 102.4 kB / 0.6119 GB, free: 12.64 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001801/0.4804, allocations: 1.033 MB / 0.6129 GB, free: 11.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002297/0.4806, allocations: 53.69 kB / 0.613 GB, free: 11.54 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007601/0.4814, allocations: 0.7856 MB / 0.6137 GB, free: 10.74 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006648/0.482, allocations: 0.5578 MB / 0.6143 GB, free: 10.18 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006619/0.4827, allocations: 335.4 kB / 0.6146 GB, free: 9.848 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.4828, allocations: 301.1 kB / 0.6149 GB, free: 9.551 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001449/0.4843, allocations: 0.7769 MB / 0.6156 GB, free: 8.773 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00191/0.4862, allocations: 1.247 MB / 0.6169 GB, free: 7.332 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.01739/0.5036, allocations: 5.61 MB / 0.6223 GB, free: 1.562 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.76e-05/0.5036, allocations: 4 kB / 0.6223 GB, free: 1.559 MB / 462.1 MB Notification: Performance of matching and sorting (n=236) (initialization): time 0.009949/0.5135, allocations: 3.792 MB / 0.626 GB, free: 13.74 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/0.5136, allocations: 8 kB / 0.6261 GB, free: 13.73 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.414e-05/0.5136, allocations: 19.94 kB / 0.6261 GB, free: 13.71 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006398/0.52, allocations: 1.713 MB / 0.6277 GB, free: 11.98 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.5212, allocations: 271.5 kB / 0.628 GB, free: 11.72 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03124/0.5524, allocations: 17.85 MB / 0.6454 GB, free: 9.418 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001804/0.5542, allocations: 95.94 kB / 0.6455 GB, free: 9.324 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003942/0.5546, allocations: 76 kB / 0.6456 GB, free: 9.25 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.001511/0.5561, allocations: 0.5211 MB / 0.6461 GB, free: 8.719 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004994/0.5566, allocations: 151 kB / 0.6463 GB, free: 8.57 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006064/0.5627, allocations: 2.246 MB / 0.6484 GB, free: 6.297 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.009e-05/0.5627, allocations: 19.94 kB / 0.6485 GB, free: 6.277 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/0.5627, allocations: 4 kB / 0.6485 GB, free: 6.273 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.7e-05/0.5627, allocations: 11.97 kB / 0.6485 GB, free: 6.262 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009875/0.5726, allocations: 3.962 MB / 0.6524 GB, free: 2.199 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.676e-05/0.5726, allocations: 7.984 kB / 0.6524 GB, free: 2.191 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001682/0.5743, allocations: 307.9 kB / 0.6527 GB, free: 1.891 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002879/0.5772, allocations: 0.5425 MB / 0.6532 GB, free: 1.332 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002241/0.5774, allocations: 55.97 kB / 0.6532 GB, free: 1.277 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01283/0.5902, allocations: 9.579 MB / 0.6626 GB, free: 7.133 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.5902, allocations: 7.969 kB / 0.6626 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007387/0.5976, allocations: 3.058 MB / 0.6656 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001005/0.5986, allocations: 282.8 kB / 0.6659 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004327/0.5991, allocations: 51.98 kB / 0.6659 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.6002, allocations: 59.94 kB / 0.666 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003755/0.6006, allocations: 117 kB / 0.6661 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001391/0.6007, allocations: 47.98 kB / 0.6661 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001327/0.6021, allocations: 0.697 MB / 0.6668 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/0.6021, allocations: 0 / 0.6668 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00277/0.6048, allocations: 0.5663 MB / 0.6674 GB, free: 2.18 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.007977/0.6128, allocations: 3.696 MB / 0.671 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006204/0.619, allocations: 2.993 MB / 0.6739 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.619, allocations: 0 / 0.6739 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002797/0.6218, allocations: 1.54 MB / 0.6754 GB, free: 9.758 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001828/0.6237, allocations: 319 kB / 0.6757 GB, free: 9.449 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04415/0.6678, allocations: 18.71 MB / 0.694 GB, free: 6.125 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00196/0.6698, allocations: 0.997 MB / 0.6949 GB, free: 5.098 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001361/0.6711, allocations: 408.5 kB / 0.6953 GB, free: 4.691 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001151/0.6723, allocations: 0.6555 MB / 0.696 GB, free: 4.035 MB / 0.5294 GB Notification: Performance of SimCode: time 1.002e-06/0.6723, allocations: 0 / 0.696 GB, free: 4.035 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3937/1.066, allocations: 47.38 MB / 0.7422 GB, free: 172.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.04/18.11, allocations: 7.156 kB / 0.7422 GB, free: 172.3 MB / 0.5606 GB " [Timeout remaining time 642] (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: 21.207000072929077] Failed to read output from testmodel.py, exit status != 0: 18.311508229002357 18.327251187999998 17.900558674 Calling exit ...